> 英语 >
如何用脚本语言计算1—1000之间能同时被3和5整除的最小整数
人气:112 ℃ 时间:2019-11-12 08:54:29
解答
for i=1 to 1000
if i /3=int(i/3) and i/5=int(i/5) then
if iN3_5_max then
N3_5_max=i
end if
end if
next
msgbox("最小:"&N3_5_min)
msgbox("最大:"&N3_5_max)
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版