0101少儿编程
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
IDE下载
Login
Register
5002: 【24课】【3147】for循环求和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:266
Solved:164
Submit
Submit Record
Statistics
ShowOff!
Description
利用for循环。计算输出
1+2+3+...+n
的和。
Input
输入
n
。对于100%的数据,
1≤n≤100
。
Output
如题述,之和。
Sample Input
Copy
10
Sample Output
Copy
55
Source/Category
一本通编程启蒙
循环结构
Submit
Submit Record
Statistics
ShowOff!