【整理来源】黑马毕老师的java基础视频
例题
1
12
123
1234
12345
class ForForTest3 { public static void main(String[] args) { for(int x=1;x<=5;x++) { for(int y=1;y<=x;y++) { System.out.print(y); } System.out.println(); } } }
【整理来源】黑马毕老师的java基础视频
例题
1
12
123
1234
12345
class ForForTest3 { public static void main(String[] args) { for(int x=1;x<=5;x++) { for(int y=1;y<=x;y++) { System.out.print(y); } System.out.println(); } } }