Even odd number
//Even odd number
Console.WriteLine("Enter a Number to check Even Odd");
int a = Convert.ToInt32(Console.ReadLine());
if (a % 2 == 0)
{
Console.WriteLine("You have entered a even number");
}
else
{
Console.WriteLine("You have entered a odd number");
}
Console.ReadLine();
No comments:
Post a Comment