-
-
61. #include<stdio.h> #include<stdlib.h> #include<math.h> int main() { double x,y; scanf("%lf",&x); if(x!=0) { if(x<1) y=log10(x); else if(x<6) y=sqrt(2*x+3); else y=pow(x,5.0)+pow(x,3.0)*3; printf("y=%.4lf\n",y); } else printf("error!\n"); system("pause"); return 0; } 2. #include <stdio.h> #include<stdlib.h> int main() { float x,y,z; char f; scanf("%f%c%f",&x,&f,&y); switch(f) { case '+':z=x+y;break; case '-':z=x-y;break; case '*':z=x*y;break; case '/':if(y==0)printf("出错,除数为
-
26test
-
68官方水楼
-
29水水更健康
-
7水水更健康
-
5