Está en la página 1de 3

'declaracion de vraiables

Dim a, b, c As Double

'entrada de datos

a = Val(txta.Text)

b = Val(txtb.Text)

c = Val(txtc.Text)

'calculos

If a = b And b = c Then

MsgBox ("son iguales")

Else

End If

If a = b And b > c Then

MsgBox " a y b son iguales y c es menor"

Else

If a = c And c > b Then

MsgBox " a y c son iguales y b es menor"

Else

If b = c And c > a Then

MsgBox " b y c son iguales y a es menor"

Else

If a = b And b < c Then

MsgBox " c es mayor, a y b son iguales"

Else

If a = c And c < b Then

MsgBox " b es mayor, a y c son iguales"

Else
If b = c And c < a Then

MsgBox " a es mayor, b y c son iguales"

Else

If a > b And b > c Then

MsgBox " a es el mayor, b el del medio y c el menor"

Else

If a > c And c > b Then

MsgBox " a es el mayor, c el del medio y b el menor"

Else

If b > c And a > c Then

MsgBox " b es el mayor, a el del medio y c el menor"

Else

If c > b And a > b Then

MsgBox " c es el mayor, a es el del medio y b es el menor"

Else

If b > c And c > a Then

MsgBox " b es el mayor, c es el del medio y a es el menor"

Else

If c > b And b > a Then

MsgBox " c es el mayor, b el del medio y a es el menor"

End If

End If

End If

End If

End If

End If
End If

End If

End If

End If

End If

End If

También podría gustarte