Private Sub Command1_Click()
Dim a(10) As Double, m1 As Double, m2 As Double
m1 = -999999: m2 = -999999
For i = 1 To 10
a(i) = Val(InputBox("请输入第 " & i & " 个数:"))
If a(i) > m1 Then
m2 = m1: m1 = a(i)
Else
If a(i) > m2 Then m2 = a(i)
End If
Next i
Print "输入的10个数是:"
For i = 1 To 10
Print a(i);
Next i
Print "第二大的数是:"; m2
End Sub
请问你能帮忙打出代码吗?!
追答:)
追问谢谢了~不用代码了~谢谢~
本回答被提问者采纳