为什么results>=70 才会没得吃没得玩 results>=70<90 这样就是吃肯得鸡 ?
#include <stdio.h>
int main()
{
int results=60;
if(results>=90)
{
printf("%s\n","买玩具");
}
else if(results>=70<90)
{
printf("%s\n","吃肯得鸡");
}
else
{
printf("%s\n","没得吃没得玩");
}
return 0;
}
#include <stdio.h>
int main()
{
int results=60;
if(results>=90)
{
printf("%s\n","买玩具");
}
else if(results>=70<90)
{
printf("%s\n","吃肯得鸡");
}
else
{
printf("%s\n","没得吃没得玩");
}
return 0;
}
2016-09-14
举报