一道vb题

2025-01-01 21:29:42
推荐回答(1个)
回答1:

dim s3 as long ,s7 as long
dim i as long
for i=1 to 100
if i mod 3 = 0 then s3 = s3 + 1
if i mod 7 = 0 then s7 = s7 + 1
next i

's3,s7即所求答案