#include <bits/stdc++.h>using namespace std ;int main(){long long num ;cin>>num ;cout<< num * (num+1)/2 <<endl; }
Standard input is empty
375572338423954544
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!