Leap Year Console App

[code language=”csharp”] using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Leap_Year
{
class Program
{
static void Main(string[] args)
{
int Year;
int loopCount = 1;
bool Continue = true;
string Stop;
bool leapYes = false;
Console.WriteLine("This program tells you if the year has a leap year" +
" and tells you the next 20 leap years");
Console.WriteLine("Please enter the starting Year");
Year = Convert.ToInt32(Console.ReadLine());

while (Continue == true)
{

while (loopCount < 21)
{
if ((Year % 4) == 0)
{
if ((Year % 100) == 0)
{
if ((Year % 400) == 0)
{
leapYes = true;
}
else
{
leapYes = false;
}
}
else
{
leapYes = true;
}
}
else
{
leapYes = false;
}
if (leapYes == true)
{
Console.WriteLine("{0}. {1}", loopCount, Year);
Year = Year + 4;
loopCount++;

}
else
{
Console.WriteLine("{0}. {1} is not a leap year", loopCount, Year);
Year = Year + 4;
loopCount++;
}

}
Console.WriteLine();
Console.WriteLine("Would you like to Continue? y or n");
Stop = Console.ReadLine();
if (Stop == "y")
{
Continue = true;
loopCount = 1;
Console.WriteLine();
Console.WriteLine("Please enter the next starting Year");
Year = Convert.ToInt32(Console.ReadLine());
}
else
{
Continue = false;
}
}
}
}
}

[/code]