MAYOR DE CUATRO NUMEROS

Anuncio
MAYOR DE CUATRO
NUMEROS
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim A, B, C, D As Integer
A = TextBox1.Text
B = TextBox2.Text
C = TextBox3.Text
D = TextBox4.Text
If A > B Then
If A > C Then
If A > D Then
TextBox5.Text
Else
TextBox5.Text
End If
Else
If C > D Then
TextBox5.Text
Else
TextBox5.Text
End If
End If
= "El mayor es A "
= "El mayor es D "
= "El mayor es C"
= "El mayor ES D "
Else
If B > C Then
If B > D Then
TextBox5.Text
Else
TextBox5.Text
End If
Else
If C > D Then
TextBox5.Text
Else
TextBox5.Text
End If
End If
End If
End Sub
= "El mayor es b "
= "El mayor es D "
= "El mayor es C"
= "El mayor ES D "
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
End
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
TextBox5.Text = "
"
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
Descargar