這是在3尋找最大碼,但我想要的代碼查找最大amoung 5:你如何在vb.net中找到5個最大的數字?
Dim a, b, c As Integer
a = InputBox("enter 1st no.")
b = InputBox("enter 2nd no.")
c = InputBox("enter 3rd no.")
If a > b Then
If a > c Then
MsgBox("A is Greater")
Else
MsgBox("C is greater")
End If
Else
If b > c Then
MsgBox("B is Greater")
Else
MsgBox("C is Greater")
End If
End If
Greate !!這是我需要的 – sangeen 2013-03-28 18:48:00