问题1009--Sum of all integer numbers

1009: Sum of all integer numbers

[命题人 : ]
时间限制 : 1 sec  内存限制 : 128 MB

提交

题目描述

Your task is to find the sum of all integer numbers lying between 1 and N inclusive.

输入

There are multiple test cases.
The input consists of a single integer N that is not greater than 10000 by it's absolute value. 

输出

Write a single integer number that is the sum of all integer numbers lying between 1 and N inclusive. 

样例输入 Copy

3
100

样例输出 Copy

6
5050

来源/分类

zcib