Don_g
2017-03-02 09:16
#include <stdio.h>
int main()
{
int year = 2014; //今年是2014年
//补全一下代码
return 0;
}
学习了,现在才知道100的倍数不是闰年
if((year%4==0&&year%100!=0) ||year%400 == 0)
{
printf("%s\n","今年是闰年");
}
else
{
printf("%s\n","今年是平年");
}
C语言入门
927009 学习 · 21533 问题
相似问题