Private Sub Command1_Click()
Dim s As Integer
Dim i As Integer
s=0
For i=1 to 100 Step 2
s=s+i
Next i
Print s
End Sub
这样就成了