#include<stdio.h> int main(void) { int i,n,year; printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++){ printf("Enter year:"); scanf("%d",&year); if((year%4==0&&year%100!=0)||(year%400==0)){ printf("这是闰年"); } else{ printf("这不是闰年"); } } return 0; }
转载于:https://www.cnblogs.com/jlg0322/p/3379798.html