#43. 【基础题】求和到第几项
【基础题】求和到第几项
Cannot parse: Cannot read properties of null (reading 'length')
【基础题】求和到第几项
题目描述
例4.5 求s=1 +2 +3……+n,当加到第几项时,s的值会超过1000?
输入说明
无输入。
输出说明
一个整数n,表示求和到第n项。
样例
输入
no input needed
输出
45
Cannot parse: Cannot read properties of null (reading 'length')
例4.5 求s=1 +2 +3……+n,当加到第几项时,s的值会超过1000?
无输入。
一个整数n,表示求和到第n项。
no input needed
45