练24.2 循环求和
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
利用for、while循环。计算输出的和。
输入格式
输入。对于100%的数据,。
输出格式
如题述,之和。
样例
10
55
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
利用for、while循环。计算输出1+2+3+...+n的和。
输入n。对于100%的数据,1≤n≤100。
如题述,之和。
10
55
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.