用while 编写程序1+2+3+4.....100
1 回答
已采纳

最初__
TA贡献68条经验 获得超39个赞
int i = 1; int s = 0; while (i <= 100) { s += i; i++; } System.out.println(s);
添加回答
举报
0/150
提交
取消