2022级统计计算机双学位《程序设计原理与C语言》上机作业

1004. ADD

单点时限: 2.0 sec

内存限制: 512 MB

Write a program to input an integer n, and to output sum of 1,2,…,n.

输入格式

input an integer n.

输出格式

output sum of 1,2,…,n.

样例

Input
10
Output
55
Input
1
Output
1
Input
1000
Output
500500