2018年8月3日

while 循环

摘要: public class Dome1{ public static void main(String[]args){ int i;//定义变量i i=1;//设置变量起始值 while(i<=100){//界限(设置循环条件,满足什么条件继续下一次) System.out.println(i);//输出i,执行下一句... 阅读全文

posted @ 2018-08-03 10:02 精彩斌 阅读(110) 评论(0) 推荐(0) 编辑

导航