fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main ()
  4. {
  5. const float R=4.21, g=3, a=11.6, Q=89.52, d=1.25;
  6. float x, q, y, S;
  7. scanf("%f",&x);
  8. q=x*g + a;
  9. y= pow(6+a,1/3);
  10. S= (q+pow(d*d+log(y)-R*Q,1/2)/R);
  11. printf("q=%f, y=%f, S=%f",q, y, S);
  12. printf("\n");
  13.  
  14. return 0;
  15. }
  16.  
  17.  
  18.  
  19.  
Success #stdin #stdout 0s 4412KB
stdin
2,456
stdout
q=17.600000,  y=1.000000,  S=17.837530