namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
int j;
Console.Write("Please Enter a Number : ");
j = int.Parse(Console.ReadLine());
if (j % 2 == 0)
{
Console.Write("Entered Number is an Even Number");
Console.Read();
}
else
{
Console.Write("Entered Number is an Odd Number");
Console.Read();
}
}
}
}
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Given number is Odd or Even...