#include using namespace std; int main(void){ //input int num; cin >> num; //calc int sum=0; for(int i=1;i<=num;i++){ sum += i; } //output cout << sum; }