using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 闰年平年 { class Program { static void Main(string[] args) { Console.WriteLine("闰年平年查询"); int a = int.Parse(Console.ReadLine()); int iTest = a % 4; switch(iTest) { case 0: Console.WriteLine("是闰年"); break; default: Console.WriteLine("是平年"); break; } Console.ReadLine(); } } }