关于用VB6.0编一个程序,计算1+2+3+4。。。。+100,多谢?的问题
Private Sub Form_Click()
Dim i As Integer
Dim sum As Integer
For i = 1 To 100
sum = sum + i
Next i
Print sum
End Sub
关于用VB6.0编一个程序,计算1+2+3+4。。。。+100,多谢?的问题
Private Sub Form_Click()
Dim i As Integer
Dim sum As Integer
For i = 1 To 100
sum = sum + i
Next i
Print sum
End Sub