为什么没有错误显示停止工作
#include<stdio.h>
int main()
{
int year;
scanf("%d",&year);
if (year%4==0&&year%100==0||year%400==0)
printf("%s\n",year,"是闰年");
else
printf("%s\n",year,"是平年");
return 0;
}
#include<stdio.h>
int main()
{
int year;
scanf("%d",&year);
if (year%4==0&&year%100==0||year%400==0)
printf("%s\n",year,"是闰年");
else
printf("%s\n",year,"是平年");
return 0;
}
举报