Rodriguez christian
2
Private Sub cmdcalcular_Click() c = 0 If Val(txtlado1.Text) = Val(txtlado2.Text) Then c = c + 1 If Val(txtlado1.Text) = Val(txtlado3.Text) Then c = c + 1 If Val(txtlado2.Text) = Val(txtlado3.Text) Then c = c + 1 If c = 0 Then lbltriangulo.Caption = "escaleno" If c = 3 Then lbltriangulo.Caption = "equilatero" If c = 1 Then lbltriangulo.Caption = "isósceles" End Sub
Transcript of Rodriguez christian
Private Sub cmdcalcular_Click()
c = 0
If Val(txtlado1.Text) = Val(txtlado2.Text) Then c = c + 1
If Val(txtlado1.Text) = Val(txtlado3.Text) Then c = c + 1
If Val(txtlado2.Text) = Val(txtlado3.Text) Then c = c + 1
If c = 0 Then lbltriangulo.Caption = "escaleno"
If c = 3 Then lbltriangulo.Caption = "equilatero"
If c = 1 Then lbltriangulo.Caption = "isósceles"
End Sub