public class testfor {
public static void main(String[]args){
int num = 1;
for(int i = num; i<=10; i++){
for(int f=num; f<(num+10);f++){
System.out.print(f) ;
}
System.out.println("");
num++;
}
}
}
输出: 12345678910
234567891011
3456789101112
45678910111213
567891011121314
6789101112131415
78910111213141516
891011121314151617
9101112131415161718
10111213141516171819