#636. 求1+2+3+…+n
求1+2+3+…+n
题目描述
输入正整数 的值,求 的结果并输出。要求使用 while 循环完成。
输入格式
输入占一行,为正整数 的值,。
输出格式
输出占一行,为 的结果。
100
5050
输入正整数 n 的值,求 1+2+3+...+n 的结果并输出。要求使用 while 循环完成。
输入占一行,为正整数 n 的值,1≤n≤10000。
输出占一行,为 1+2+3+...+n 的结果。
100
5050
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.