Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim intMayor, intMedio, intMenor As Integer
If (CInt(TextBox1.Text) > CInt(TextBox2.Text)) Then
If (CInt(TextBox1.Text) > CInt(TextBox3.Text)) Then
intMayor = CInt(TextBox1.Text)
If (CInt(TextBox2.Text) > CInt(TextBox3.Text)) Then
intMedio = CInt(TextBox2.Text)
intMenor = CInt(TextBox3.Text)
Else
intMedio = CInt(TextBox3.Text)
intMenor = CInt(TextBox2.Text)
End If
Else
intMayor = CInt(TextBox3.Text)
intMedio = CInt(TextBox1.Text)
intMenor = CInt(TextBox2.Text)
End If
Else
If (CInt(TextBox2.Text) > CInt(TextBox3.Text)) Then
intMayor = CInt(TextBox2.Text)
If (CInt(TextBox1.Text) > CInt(TextBox3.Text)) Then
intMedio = CInt(TextBox1.Text)
intMenor = CInt(TextBox3.Text)
Else
intMedio = CInt(TextBox3.Text)
intMenor = CInt(TextBox1.Text)
End If
Else
intMayor = CInt(TextBox3.Text)
intMedio = CInt(TextBox2.Text)
intMenor = CInt(TextBox1.Text)
End If
End If
Label1.Text = Str(intMayor) & " > " & Str(intMedio) & " > " & Str(intMenor)
End Sub
End Class