摘要: 4循环控制 4.1 for循环 4.1.1 for循环 固定次数for循环 先执行一次do-while循环 其他while循环 Scanner in = new Scanner(System.in);//计算阶乘 int n = in.nextInt(); int factor = 1; ; for 阅读全文
posted @ 2019-12-05 09:25 生长的力量 阅读(351) 评论(0) 推荐(0)
摘要: 3循环 3.1循环 3.1.1循环 一直要做的行为进行循环 3.1.2数数字 while(){}判断是否进行 数数字:number/10 1 //数数字Scanner in = new Scanner(System.in); 2 System.out.println("请输入一个数!"); 3 in 阅读全文
posted @ 2019-12-05 09:16 生长的力量 阅读(193) 评论(0) 推荐(0)