public static void Main()
Console.WriteLine("Check whether a given year is a leap year or not");
Console.WriteLine("...................................................");
Console.WriteLine("Enter the year you want to check (or 0 to end)");
chkYear = Convert. ToInt32(Console.ReadLine());
Console.WriteLine("All done");
else if ((chkYear %400)==0)
Console.WriteLine("{0} is a leap year", chkYear);