.输出100以内既能被2整除又能被5整除的数的和Dim i As Integer,s As Longs = 0For i = 1 To 100If i Mod 2=0 And Mod 5=0 Thens=s+iEnd IfNext iMsgBox "输出100以内既能被2整除又能被5整除的数的和:" & s
If i Mod 2=0 And Mod 5=0 Then 应该是If i Mod 2==0 And Mod 5==0 Then