Está en la página 1de 2

MODELOS DE CLASES

NUMERO POSITIVOS
NUMEROS NEGATIVOS
MEDIA
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If Me.ONUMERO.Text = "" Then
MsgBox(" FAVOR DIGITE EL NUMERO ")
Me.ONUMERO.Focus()
End If
numero = Me.ONUMERO.Text

REM PROCESO
If numero > 0 Then
clasificar = " EL NUMERO ES POSITIVO "
Else
If numero < 0 Then
clasificar = " EL NUMERO ES NEGATIVO "

REM ASIGNAR VALORES A LOS OBJETOS DE SALIDA

Me.caja.Text = clasificar
Me.caja2.Text = numero + 1 / 2

End If
End If
REM ASIGNAR VALORES A LOS OBJETOS DE SALIDA

Me.caja.Text = clasificar
Me.caja2.Text = numero + 1 / 2


End Sub
End Class















NUMEROS POSITIVOS NUMEROS NEGATIVOS MEDIA
Clasifica(numero_posit
ivo:int):number
Numero > 0 ;
Numero :int Numero :int
Numero :int
Clasifica(numero_nega
tivo:int):number
Numero < 0 ;
Clasifica(media:int):nu
mber
numero+1/2;
LISTA DE VALORES
1
-3
-5
12
1569
-84
126
75
-6655

También podría gustarte