#include<stdio.h>
int main()
{
int year;
scanf("%d",&year);
if(year%4==0&&year%100!=0||year%400==0)
printf("year是闰年");
else
printf("year不是闰年");
return 0;
}
#include<stdio.h>
int main()
{
int year;
scanf("%d",&year);
if(year%4==0&&year%100!=0||year%400==0)
printf("year是闰年");
else
printf("year不是闰年");
return 0;
}
本文标题:判断是否为闰年
本文链接:https://www.haomeiwen.com/subject/ndvemxtx.html
网友评论