代码
提交代码
public class ForLoop2 { public static void main(String[] args) { for (int i = 1, j = 10; i <= 10; i++, j--) { System.out.print(i + "\t"); System.out.print(j + "\t"); } } }
运行结果