> 英语 >
vf求(1,100)内所有能被3或被5整除的数以及个数.
人气:409 ℃ 时间:2020-01-30 00:02:01
解答
clear
s=0
"(1,100)内所有能被3或被5整除的数有:"
for i=1 to 100
if i%3=0 or i%5=0
s=s+1
endif
endfor
"个数为:",s
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版