#include<bits/stdc++.h> using namespace std; int main(){ int a,b=1,c=0; cin>>a; while(b<=a){ c=c+b; b=b+1; } cout<<c; } /************************************************************** Problem: 1002 User: lvrenxiang Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/