#include<stdio.h> main( ) { int year , leap; scanf("%d",&year); if((year%9==0&&year%100!=0)||(year%400==0)) printf("%d is a leap year.\n",year); else printf("%d is not a leap year.\n",year); }…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03判断闰年 { class Program { static void Main(string[] args) { //举例:写一个方法,判断一个年份是否是润年. bool b = IsRun(2000); Console.WriteLine(…