C语言入门题1 #include<stdio.h> #include<math.h> main() { double x,y; scanf("%lf",&x); if(x>=0) { y =sqrt(x); printf("f(%.2f) = %.2f",x,y); } else { y = pow((x+1),2)+2*x+1/x; printf("f(%.2f) = %.2f",x,y); } }