Q. WAP in Console C#.NET, to Input number and find it is odd or even.

static void Main(string[] args)
{
    int n;
    clrscr();
    Console.WriteLine("Enter number:");
    n = Convert.ToInt32(Console.ReadLine());
    if(n%2==0)
    {
        Console.WriteLine("Number is Even");
    }
    else
    {
        Console.WriteLine("Number is Odd");
    }
    Console.ReadLine();
}
Output 1:
Enter number: 50
Number is Even

Output 2:
Enter number: 51
Number is Odd