Problem B: n个自然数的和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:113
Solved:32
Description
1+2=3,1+2+3=6,1+2+3+4=10
你能用计算机计算1+2+3...+ n的和吗?
Input
3
Output
6
Sample Input Copy
4
Sample Output Copy
10
HINT
使用while循环完成输出。