Monday, 22 April 2013

EvenOdd


using System;
public class EvenOdd
{
public static Main(string[]args)
{
int num
Console.WriteLine("Enter num");
num=Convert.ToInt32(Console.ReadLine());
if(num%2==0)
{
Console.WriteLine("Even");
}
else
{
Console.WriteLine("Odd");
}
}
}

No comments:

Post a Comment