/*查询某年是否是闰年*/
#include "stdio.h"
void main()
{
int year;
printf("\n\n\t输入要查询的年份:");
scanf("%d",&year);
if(year%400==0)printf("\n\n\t%d年是闰年",year);
else if(year%4==0)
if(year%100!=0)printf("\n\n\t%d年不是闰年",year);
else printf("\n\n\t%d年不是闰年",year);
else printf("\n\n\t%d年不是闰年",year);
}