#include<stdio.h>
int main()
{
int year;
scanf_s("%d", &year);
if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
{
printf("yes");
}
else
printf("no");
return 0;
}
判断平年还是闰年
最新推荐文章于 2021-04-19 18:17:35 发布
#include<stdio.h>
int main()
{
int year;
scanf_s("%d", &year);
if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
{
printf("yes");
}
else
printf("no");
return 0;
}