Problem D: 用函数求1+2+......+n的值(自定义函数)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:10 Solved:9

Description

用函数求1+2+......+n的值

Input

n

Output

Sample Input Copy

5

Sample Output Copy

15

Source/Category