fork(1) download
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. int main() {
  5. double p, x;
  6. scanf("%lf", &x);
  7. p = (((2*x + 3)*x - 4)*x - 5)*x + 6;
  8. printf("%lf", p);
  9. return 0;
  10. }
Success #stdin #stdout 0s 3300KB
stdin
-6
stdout
1836.000000