编写一段VBScipt脚本,其功能是输出100以内同时能被3和5整除的数之和.

谢谢谢谢!!!拜托了。急。在线等
2025-04-07 23:36:10
推荐回答(1个)
回答1:

s=0
for i = 1 to 100
if i mod 3 =0 and i mod 5=0 then
s=s+i
end if
next
msgbox s

复制到记事本,另存为.vbs文件