#include<stdio.h>
main()
{
int a;//kang ge zhuan yong qing qu diao
printf("请输入年份:");
scanf("%d",&a);
if(a%4==0)
if(a%100==0)
if(a%400==0)
printf("%d is leap year",a);
else
printf("%d isn't leap year",a);
else
printf("%d is leap year",a);
else
printf("%d isn't leap year",a);
system("pause");
}
main()
{
int a;//kang ge zhuan yong qing qu diao
printf("请输入年份:");
scanf("%d",&a);
if(a%4==0)
if(a%100==0)
if(a%400==0)
printf("%d is leap year",a);
else
printf("%d isn't leap year",a);
else
printf("%d is leap year",a);
else
printf("%d isn't leap year",a);
system("pause");
}