5002: 【24课】【3147】for循环求和

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

Description

利用for循环。计算输出1+2+3+...+n的和。

Input

输入n。对于100%的数据,1≤n≤100

Output

如题述,之和。

Sample Input Copy

10

Sample Output Copy

55