private sub command1_click()dim i,a,bfor i=1 to 1000if i mod 3=0 then a=a+1if i mod 7=0 then b=b+1nextprint "1~1000中能被3整除的数的个数=" & aprint "1~1000中能被7整除的数的个数=" & bend sub