using System;
public class Program
{
public static void Main()
int x = 3;
if (IsEven(x))
Console.WriteLine("EVEN!");
}
else
Console.WriteLine("ODD!");
public static bool IsEven(int i)
if (i % 2 == 0)
// returns true if the passed integer is even
return true;
// returns false if the passed integer is odd
return false;