结果不太对啊,我这个闰年只按4的倍数算了,见谅
#include <stdio.h>
int main()
{
int year = 2014;
if((int)(year/4)==year/4){
printf("%s","闰年");
}
else{
printf("%s","平年");
}
return 0;
}
#include <stdio.h>
int main()
{
int year = 2014;
if((int)(year/4)==year/4){
printf("%s","闰年");
}
else{
printf("%s","平年");
}
return 0;
}
2022-04-17
举报