segunda-feira, 29 de agosto de 2011

on

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim valor As Integer

        valor = Val(Me.TextBox1.Text)

        If valor Mod 2 = 0 Then
            MsgBox("O número é par")
        Else
            MsgBox("O número é ímpar")
        End If

    End Sub
End Class

Espero ter ajudo e att.

0 comentários:

Postar um comentário

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.