错误在哪?
public class HelloWorld { public static void main(String[] args) { System.out.println("打印直角三角形"); for (int i = 1;i <= 3;i + 1) { for (int j = 1;j <= i;j + 1) { System.out.print("*"); } System.out.println(); } } }
public class HelloWorld { public static void main(String[] args) { System.out.println("打印直角三角形"); for (int i = 1;i <= 3;i + 1) { for (int j = 1;j <= i;j + 1) { System.out.print("*"); } System.out.println(); } } }
2016-07-08
举报