Sub ab(number())
Dim max
Dim min
max = number(0)
min = number(0)
For Each x In number
If max < x Then max = x
If min > x Then min = x
Next x
Print "最大数是:"; max; "最小数是:"; min
End Sub
Private Sub Form_Load()
Dim m(3) As Integer
For i = 0 To 2
m(i) = InputBox("请输入:")
Next i
Call ab(m())
End Sub
Dim max
Dim min
max = number(0)
min = number(0)
For Each x In number
If max < x Then max = x
If min > x Then min = x
Next x
Print "最大数是:"; max; "最小数是:"; min
End Sub
Private Sub Form_Load()
Dim m(3) As Integer
For i = 0 To 2
m(i) = InputBox("请输入:")
Next i
Call ab(m())
End Sub
qq7434391