Problem1533--简单递归-f(n)=1+2+3+4+···+n (n<=10000)

1533: 简单递归-f(n)=1+2+3+4+···+n (n<=10000)

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 261  Solved: 234
[Status] [Submit] [Creator:]

Description

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

输入n,求函数的值 



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

Source/Category

 提高B