y = sqrt(x); printf("%.1f的平方根为:%.2f\n\n",x,
int main(){ float x,y;scanf("%f",&x);if(x<=0)y=fabs(pow(x,3)-1);//pow(x,3)求x的3次方,fabs求绝对值 else y=sqrt(pow(x,3)+1);//sqrt求平方根 printf("y=%f\n",y);}