If Else Program - C# Program

Program to find out whether it is an odd number or even number

using System;
namespace ifElseDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            int num;
            Console.Write("Enter the Number :");
            num = Convert.ToInt32(Console.ReadLine());
            if (num % 2 == 0)
                Console.WriteLine("{0} is Even Number", num);
            else
                Console.WriteLine("{0} is Odd Number", num);
        }
    }
}

Output - Program to find out whether it is an odd number or even number

    Enter the Number :22
    22 is Even Number