program to check
entered number is odd or even.
-----------------------------------------code---------------------------------------------------------
Public Class Form1
Private Sub
Button1_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles
Button1.Click
If
TextBox1.Text Mod 2 = 0 Then
MsgBox("Number
is even", , "Message")
TextBox1.Text = ""
Else
TextBox1.Text = ""
End If
End Sub
End Class
-----------------------------------------output----------------------------------------------------
umesh sohaliya |
umesh sohaliy |
No comments:
Post a Comment