c语言老是出错E:\c++\xy.c(7) : error C2181: illegal else without matching if
#include<stdio.h>intmain(){intyear,days;scanf("%d",&year);if(year%4==0&&year%100!=0||...
#include <stdio.h>
int main(){
int year,days;
scanf("%d",&year);
if(year%4==0&&year%100!=0||year%100==0);
printf("days=29");
else
printf("days=28");
return 0;
} 展开
int main(){
int year,days;
scanf("%d",&year);
if(year%4==0&&year%100!=0||year%100==0);
printf("days=29");
else
printf("days=28");
return 0;
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询