
编写程序,打印输出下面图形
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
© 版权声明:本文《编写程序,打印输出下面图形》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686860736a357487.html。