main()
{
signed int x,y,a;
printf("please input x:");
scanf("%d",&x);
if((-5<x)&&(x<0))
a=1;
else if(x==0)
a=2;
else if((0<x)&&(x<10))
a=3;
switch (a)
{
case 1:
y=x;
break;
case 2:
y=x-1;
break;
case 3:
y=x+1;
break;
default:break;
}
printf("y is:%d",y);
}