[求助]For循环输入比较大小的问题
怎么用FOR循环输入3个数字然后求出3个数中的最小值?
帮忙改写一下我这段有问题的代码
谢谢
Private Sub Form_Click()
Dim num1 As Integer, small As Integer, i
For i = 1 To 3
num1 = InputBox("请输入第" + Str(i) + "个数")
small = num1
If num1 < small Then
small = num1
End If
next i
Text1.Text = small
End Sub