> 数学 >
求满足1+2+3+...+n>500 的最小的自然数n 编写程序 用到以下这些提示次:input while wend
人气:379 ℃ 时间:2020-05-04 04:35:38
解答
s=0
n=1
while s<=500
s=s+n
n=n+1
wend
printn
end
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版