Problem1537--递归-f(n)=1+2+3+4+···+n (n<=50000)

1537: 递归-f(n)=1+2+3+4+···+n (n<=50000)

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 161  Solved: 134
[Status] [Submit] [Creator:]

Description

已知函数f(n)=1+2+3+4+···+n;(n<=50000) 

(必须用递归完成)

输入n,求函数的值  



输入样例:10
输出样例:55 

Source/Category

 提高B