✅ 操作成功!

编写程序,打印输出下面图形

发布时间:2023-06-16 作者:admin 来源:文学

编写程序,打印输出下面图形

编写程序,打印输出下面图形

package p1;

public class test3 {     public static void main(String[] args) {         for(int row = 0;row<5;row++) {             for(int star = 1;star<=row+1;star++) {                 System.out.print("*");             }             System.out.println();         }     }

}

👁️ 阅读量:0