判断一年是不是闰年(c语言)
作者:互联网
#include <stdio.h>
#include <stdlib.h>
//判断是不是闰年
int main()
{
int year;
scanf("%d",&year);
if((year%40&&year%100!=0)||year%4000){
printf(“the year is leap year”);
}
else
printf(“the year is not leap year”);
return 0;
}
标签:语言,闰年,int,printf,是不是,leap,year,year%,include 来源: https://blog.csdn.net/lzh_99999/article/details/100712113