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