这个知识点在java笔试中可能会涉及。
public static void main(String[] args) { for(int i=1,j=i+10;i<5;i++,j=i*2){ System.out.println(i+" "+j); } }
结果如下:
1 112 43 64 8