fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5. double x, f;
  6.  
  7. printf("Enter x: ");
  8. scanf("%lf", &x);
  9.  
  10. f = 0.25 * pow(x, 5) + 4 * pow(x + 20, 4) - 2 * x;
  11.  
  12. printf("f(x) = %.2lf\n", f);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
Enter x: f(x) = 640000.00