public static void Main()
Console.WriteLine("Every four years, we add an extra day, February 29, to our calendars. These extra days – called leap days – help synchronize our" + "\n" + "human-created calendars with Earth’s orbit around the sun and the actual passing of the seasons. ");
Console.WriteLine("Please enter a year");
string number = Console.ReadLine();
if (int.TryParse(number, out year))
if (year > 1582 && year < 3000)
Console.WriteLine("Enter a more recent year");
Console.WriteLine("Dont look so far into the future");
Console.WriteLine(year + " is a leap year");
Console.WriteLine(year + " is a common year");
Console.WriteLine("Woudl you like to restart the program?y/n");
string restart = Console.ReadLine();
if (restart == "y" || restart == "Y")
Console.WriteLine("Enter a year between 1582 and 3000");
Console.WriteLine("Please enter a positive integer");