Console Application VB.net - Check Whether The Number Is Even Or Not |
He Guys
Today We Are Going To Make A Console Application Which Will Ask User To Enter A Number And The Program Will Check Whether The Number Is Even Or Not....
Even / Odd Numbers Meaning -
Hope So Everyone Here Knows What Are Even Numbers & What Are Odd Numbers..
So Lets Move On Directly To How To Create Such Type Of Application
To Create Such Type Of Application Follow Below Link -
Console Application VB.net - Even Number Or Not
Coding Part -
Sub Main()
Dim Number As String
Console.WriteLine("Enter a Number To Check Whether Its Even Or Not : ")
Number = Console.ReadLine()
If (Number Mod 2 = 0) Then
Console.WriteLine(" The Number You Entered Is Even Number ")
Else
Console.WriteLine(" The Number You Entered Is Not An Even Number ")
End If
Console.ReadLine()
End Sub
Name "Dark Coders" Or Click the below Image.
Thanks,
Visit Again
Regards - Dhiraj Bhatkar
Visit Again
Regards - Dhiraj Bhatkar