#include <stdio.h>int main(){ long long n; scanf("%lld", &n); printf("%lld",n*(n+1)/2); return 0;}
Standard input is empty
-2673225246354050792
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!