#include #include void main(){ float x,y; scanf("%f",&x); if(x>=0&&x<=1) y=pow(2.718282,sqrt(x))-1; //e=2.718282 近似值 else if(x>=3&&x<=4) y=x+2; else y=sin(pow(x,2)); printf("x=%f,y=%f",x,y);}