用户:giorgioXokQ查看:0 回复:1 评论:0 创建时间:2020-04-16T23:00:06
展示:源代码:
#include <iostream>
using namespace std;
int main(){
int i = 0;
int n = 0;
while(i <= 100){
cout << i << "\t" << n << endl;
n += i;
i++;
}
cout << i - 1 << "\t" << n << endl;
return 0;
}