Problem C: 递归求和

Problem C: 递归求和

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 639  Solved: 582
[Submit][Status][Web Board]

Description

给定N(1<=N<=32),用递归的方法计算1+2+3+4+...+(n-1)+n

Input

一个数字N

Output

如题

Sample Input

4

Sample Output

10

HINT

[Submit][Status]