摘要:
1.循环语句do…while do { 执行语句 ……… } while(循环条件); 用do.....while打印1-100 int i=1; do{ System.out.println(i); i++; }while(i<=100); 用do.....while算1-100的和 int i= 阅读全文
posted @ 2020-04-23 10:37
嘿抬头i
阅读(137)
评论(0)
推荐(0)
摘要:
1.循环语句while while(循环条件){ 执行语句 ……… } 用while打印1-100; int i=1; while(i<=100){ System.out.println(i); i++; } 用while打印1-100的和; int i=0; int count=0; while( 阅读全文
posted @ 2020-04-23 09:51
嘿抬头i
阅读(120)
评论(0)
推荐(0)
浙公网安备 33010602011771号