public static string leapYear(int year)
if ((year % 4 == 0 | year % 400 == 0) && year % 100 != 0)
{ return year+" is a leap year!"; }
{ return year+" is not a leap year!"; }
public static void Main()
Console.WriteLine("Enter the year: ");
int year = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(leapYear(year));