fork(1) download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. float function(float a);
  5.  
  6. void main()
  7. {
  8. float x, y;
  9. int t = scanf("%f", &x);
  10. if (t==1)
  11. {y = 7e-3*pow(x,4)+((22.8*cbrt(x)-1e3)*x+3)/(x*x/2)-x*pow((10+x),(2/x))-1.01;
  12. printf("%.1f\n", y);
  13. }
  14. else
  15. printf("n/a\n");
  16. }
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
-nan