摘要:
1.while练习_累加思想:class WhileTest{ public static void main(String[] args) { /* 练习: 获取1到10 10个数字的和; 0 + 1 1 + 2 3 + 3 6 + 4 10 + 5 思路: 1.每次参与加法的数值不确定; 2.每... 阅读全文
摘要:
1.循环结构:代表语句:while,do while,for;I.while循环:class WhileDemo{ public static void main(String[] args) { /* while(条件表达式) { 执行语句; } */ int x = 1; wh... 阅读全文