[求助]为什么
求输入n个数,输出其中的最大值??
Private Sub Form_Click()
Dim n As Integer, x As Single, i As Integer, m As Single
n = InputBox("输入个数")
For i = 1 To n
x = InputBox("输入第" + Str(i) + "值")
If i = 1 Then
m = x
Else
If x > m Then m = x
End If
Next i
Print x
End Sub
比如第一个数为10,第二个数为30,第三个数为20
可是输出的却是20????