if-else问题求教 提前谢了
#include<stdio.h>int main(void)
{
int age;
if(!age)
{ printf("zhe bu he fa\n");
return 0;
}
else if(age>=0&&age<=100)
printf("n li bi x \n");
return 0;
}
else if(age>0 && age<19)
{ printf("zshi ydwkkj\n");
return 0;
}
else if(age>=19&&age<=50)
{
printf("zsjhdcshjj\n");
return 0;
}else
{ printf("shjdhsd\n");
return 0;
}
哪里错了
D:\Program Files (x86)\Microsoft Visual Studio\MyProjects\shuzi\shuzi.(13) : error C2059: syntax error : 'else'
D:\Program Files (x86)\Microsoft Visual Studio\MyProjects\shuzi\shuzi.c(17) : error C2059: syntax error : 'else'
D:\Program Files (x86)\Microsoft Visual Studio\MyProjects\shuzi\shuzi.c(21) : error C2059: syntax error : 'else'