# include# includeint main(void){ int x,y; printf("请输入x的值:\n"); scanf("%d",&x); if(x<0) { y=x-1; } else if(x<=10&&x>=0) { y=2*x-1; } else { y=3*x-11; } printf("y的值为:%d\n",y); system("pause"); return 0;}