练24.2 for循环求和
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循环。计算输出的和。
输入格式
输入。对于100%的数据,。
输出格式
如题述,之和。
样例
1055
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循环。计算输出1+2+3+...+n的和。
输入n。对于100%的数据,1≤n≤100。
如题述,之和。
1055