第3周作业-循环与判断语句

来源:互联网 发布:java poi 合并单元格 编辑:程序博客网 时间:2024/06/09 16:08
public class LoopExample  {          public static void main(String [] args)      {                  for(int i = 1; i < 5; i++)          {                for(int j = 0; j < 2 * i - 1;  j++)              {                  System.out.print("*");                          }   System.out.println(" ");                  }          }  }  

0 0