//while-if嵌套 /*char n=‘*‘; int m=1; System.out.println("==输出10行10列的星号=="); while(m<101){ System.out.print(n+" "); if(m%10==0){ System.out.println(); } m++; */
//while-while嵌套循环 int m=1; int n=1; while(m<=10){ while(n<10){ System.out.print("* "); n++; } n=1; System.out.println("* "); m++;
时间: 2024-10-10 17:05:44