int year = Convert.ToInt32(Console.ReadLine());
if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
{
Console.WriteLine("是闰年");
}
else
{
Console.WriteLine("不是闰年");
先理清判定条件
然后再写语句