sososo简单 只是记录一种输入
#include<iostream>
using namespace std;
int main(){
int s=0,i=0,n;
cin >>n;
while (n--) s += ++i;
cout <<s;
return 0;
}
sososo简单 只是记录一种输入
#include<iostream>
using namespace std;
int main(){
int s=0,i=0,n;
cin >>n;
while (n--) s += ++i;
cout <<s;
return 0;
}