/*
y =x(x<1)
y =2x-1(x>=1&&x<10)
y =3x-11(x>=10)
*/
#include <stdio.h>
#include <math.h>
int main()
{
int x,y;
printf("请输入x的值\n");
scanf("%d",&x);
if(x>=1)
if(x<10)
y=2*x-1;
else
y=3*x-11;
else
y=x;
printf("y=%d",y);
return 0;
}