using System;
class EvenOddNumber
{
static void Main (string [] args)
{
int Number;
Console.WriteLine("Enter the number to be checked as Even or Odd");
Number = Convert.ToInt32(Console.ReadLine());
if (Number % 2 == 0)
{
Console.WriteLine(" The number you have entered is an Even number");
}
else
{
Console.WriteLine("The number you need entered is an Odd number");
}
Console.ReadLine();
}
}
No comments:
Post a Comment