Prints if the entered integer is an odd or even number.
Console.WriteLine("Enter a number: ");
int n = int.Parse(Console.ReadLine());
if (n % 2 == 0)
{
Console.WriteLine(n + " = Even");
}
else
{
Console.WriteLine(n + " = Odd");
}
// 6
// 6 = Even