using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 建一个判断是否为闰年的方法_函数_ { class Program { /// <summary> /// 判断一个年份是否为闰年 /// </summary> /// <param name="year">要判断的年份</param> /// <returns>返回是否为闰年</returns> public static bool IsRunint year) { bool b = year % 400 == 0) || year % 4 == 0 && year % 100 != 0); return b; } static void Mainstring[] args) { bool b = IsRunint.ParseConsole.ReadLine))); Console.WriteLineb); Console.ReadLine); } } }