#include <stdio.h>
int main()
{
int x,y;
printf("please enter the x=");
scanf("%d",&x);
if(1<=x<10)
{y=2*x-1;
printf("y=%d\n",y);
}
else if(x>=10)
{y=3*x-11;
printf("y=%d\n",y);
}
else
{y=x;
printf("y=%d",y);
}
}
第一次判断总是不对,把1《 删去 才能正确判读并且执行第二条。但是不删除就永远执行第一条。请问我应该怎么编写呢?