运行不了,哪里错了?
#include<stdio.h>
int main()
{
int year
printf("请输入年份\n");
scanf("%d",&year);
if((year%100!=0&&year%4==0)||year%400==0)
{
printf("闰年\n");
}
else
{
printf("平年\n");
}
return 0;
}
#include<stdio.h>
int main()
{
int year
printf("请输入年份\n");
scanf("%d",&year);
if((year%100!=0&&year%4==0)||year%400==0)
{
printf("闰年\n");
}
else
{
printf("平年\n");
}
return 0;
}
2016-10-06
举报