Problem B: 用递归方法计算和

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

Description

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

Input

输入1个整数n(n<=100)

Output

输出和

Sample Input Copy

10

Sample Output Copy

55

Source/Category