Code:
using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter the no. :");         
            int a = Int32.Parse(Console.ReadLine());
            if (a % 2 == 0)
                Console.WriteLine("Even no. :");
            else
                Console.WriteLine("Not even");
                Console.ReadLine();

       }
    }
}

Last edited by shabbir; 22May2011 at 10:12.. Reason: Code blocks