请看看这哪里不对了?
#include<stdio.h>void main()
{
int x,y;
printf("please input x:");
scanf("%d",&x);
if(x<1)
{y=x;
printf("x=%d,y=x=%d\n",x,y);
}
else if(1<=x<10)
{y=2*x-1;
printf("x=%d,y=2*x-1=%d\n",x,y);
}
else
{y=3*x-11;
printf("x=%d,y=3*x-11=%d\n",x,y);
}
}
为什么我输入大于10的数,结果出不来y=3*x-11的呢?