#2451. 练27.2 布纳特难题
练27.2 布纳特难题
说明
德国“数学王子”高斯在$10$岁时便解答了布纳特老师出的难题:$1$到$100$的所有整数加起来的和的算术题。试着编一程序,先求$1+2+3+4+5$的和。
输入格式
无输出格式
$1+2+3+4+5$的和。无
1+2+3+4+5=15
无
1+2+3+4+5=15
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.