如果x大于等于10,y=3(x+1)/100;如果x大于0且小于10,y=4/x+6x;如果x等于0,y等于0;如果x小于0,y等于1.
#include "stdio.h"
int main()
{ float x,y;
scanf("%f",&x);
if(x>=10)y=3*(x+1)/100;
else if(x>0)y=4/x+6*x;
else if(x==0)y=0;
else y=1;
printf("%g\n",y);
printf("\n");
}