package Day06; public class ForForDeomm { public static void main(String[] args) { for (int a = 1;a<=5;a++){ for(int c = 4;c==5-a+1;) for(int b = 1;b<=a;b++){ System.out.print("*"); } System.out.println(); } } } /*public static void main(String[] args) { for (int a = 1;a<=5;a++){ for(int b = 1;b<=a;b++){ System.out.print("*"); } System.out.println(); } } } */ /* public static void main(String[] args) { for (int a = 5;a>=1;a--){ for(int b = 1;b<=a;b++){ System.out.print("*"); } System.out.println(); } } } */
zuoye08
最新推荐文章于 2024-09-30 10:36:33 发布