怎么写呀
aide吧
全部回复
仅看楼主
level 4
2018年09月20日 06点09分 1
level 7
int i=1;
while(i<100)
{
sum+=i;
i++;
}
2018年09月20日 07点09分 2
不对呀
2018年09月20日 07点09分
@我不愿让你04 写错了不是i<100是i<=1000
2018年09月20日 08点09分
回复 ☞我是***☜ :不是
2018年09月20日 08点09分
level 13
int sum = 0;
int i = 1;
while(i <= 1000) {
sum += i++;
}
System.out.println(sum);
2018年09月20日 07点09分 3
不行呀
2018年09月20日 08点09分
level 7
2018年09月20日 08点09分 4
好厉害,
2018年09月20日 09点09分
谢谢啦
2018年09月20日 09点09分
我刚接触这个,
2018年09月20日 09点09分
1