qq_慕仙3219070
2020-02-10 20:22
#include <stdio.h>
int main()
{ int year = 2014; //今年是2014年
if(year%4==0&&year%100!=0||year%400==0)//补全一下代码
{
printf("%s\n","今年是闰年");
}
else
{
printf("%s\n","今年是平年");
}
return 0;
}
if(year%400=0||(year%4==0&&year%100!=0))
printf("今年是闰年\n");
else
printf("今年不是闰年\n");
C语言入门
928481 学习 · 21551 问题
相似问题