#include <stdio.h>
int main (void)
{
int money;
printf("请输入金钱;");
scanf("%d",&money);
if(money>=1000000)
{
printf("%s\n","A6");
}
else if(money>=500000&&money<=1000000)
{
printf("%s\n","帕萨特");
}
else if(money>=200000&&money<=500000);
{
printf("%s\n","奇瑞");
}
else if(money>=200000)
{
printf("%s\n","奥拓");
}
return 0;
}
看逻辑关系,最后一个else if该money<=200000了吧
我觉得不需要写 后面这段 &&