滴咯mook
2018-12-28 15:45
#include <stdio.h>
int main()
{
int year = 2014; //今年是2014年
if(year%400==0)//补全一下代码
{
printf("%s\n","今年是闰年");
}else(year%400!=0)
{
printf("%s\n","今年是平年");
}
return 0;
}
				#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;
}
				#include <stdio.h>
int main()
{
int year = 2014; //今年是2014年
if(year%400==0)
{
printf("%s\n","今年是闰年");
}else
{
printf("%s\n","今年是平年");
}
return 0;
}
C语言入门
928137 学习 · 21543 问题
相似问题