vb编程计算1+2+3+4……+100的值

2024-11-17 20:44:03
推荐回答(1个)
回答1:

Private Sub Form_Click()
Dim s As Integer
For i = 1 To 100
s = s + i
Next i
Print "判清笑正袜1+2+....+100="掘含; s
End Sub