char X[4];int x = 0 , y = 0;printf("请输入X值:");scanf("%s",X);x = atoi((char *)X);if(x < 1) y = x;else if(x < 10 && x >= 1) y = (2 * x - 1);else if(x >= 10) y = 3 * x - 11;printf("Y的值为:%d\n",y);