求在200到2000之间所有能被四除余二,被七除余三,被九除余五的数之和。编写VB程序????、谁会啊?、、

2024-12-02 21:16:47
推荐回答(1个)
回答1:

dim sum,i
sum = 0
for i = 200 to 2000
if i mod 4 = 2 and i mod 7 = 3 and i mod 9 = 5 then
sum = sum + i
end if
next
print sum