下列代码的输出结果是___________________for(int y=0; y<4; y++){ for(int x=0; x<5; x++){ System.out.print("*"); }System.out.println();}
举一反三
- 下列代码的输出结果是___________________ for(int y=0; y<4; y++){ for(int x=0; x<5; x++){ System.out.print("*"); } System.out.println(); }
- 下列代码的输出结果是___________________for (int y=1; y<=5; y++) { for (int x=1; x<y; x++) { System.out.print(" "); } for (int z=y; z<=5; z++) { System.out.print("*"); } System.out.println(); }
- 下列代码的输出结果是___________________ for (int y=1; y<=5; y++) { for (int x=1; x<y; x++) { System.out.print(" "); } for (int z=y; z<=5; z++) { System.out.print("*"); } System.out.println(); }
- 下面代码的输出结果是()。 int x = 5; int y = x++; Console.WriteLine(y); y = ++x; Console.WriteLine(y);
- 下列程序段运行后的结果是()int x = 1;int y = 2;x += y + y;if (x < 5 && y <= 4) {System.out.println("1");} else if (x >= 5 || y > 4) {System.out.println("2");} else {System.out.println("error");} A: 无法编译 B: 程序报错 C: 1 D: 2