用while循环计算1+2+3+...+100=?
摘要:
package Struct; public class WhileDemo03 { public static void main(String[] args) { //计算1+2+3+...+100 int i = 0; int sum = 0; while(i <= 100){ sum = s 阅读全文
posted @ 2021-08-11 21:55 yueyue~ 阅读(526) 评论(0) 推荐(0) 编辑