为什么*是竖着的?
public static void main(String[] args) { System.out.println("打印直角三角形"); for (int i = 1; i <= 3; i++) { for (int j = 1; j <= i; j++) { System.out.println("*"); } System.out.println(); } } }
public static void main(String[] args) { System.out.println("打印直角三角形"); for (int i = 1; i <= 3; i++) { for (int j = 1; j <= i; j++) { System.out.println("*"); } System.out.println(); } } }
2022-02-20
举报