fork download
  1. /* My C program */
  2. #include <stdio.h>
  3. #include <math.h>
  4.  
  5. int main(void)
  6. {
  7. const float a = 3.0;
  8. const float b = 6.0;
  9. float x1 = 2.6;
  10. float x2 = 2.8;
  11. float c = 0.0;
  12.  
  13. c = (pow(x1, 2) + pow(x2, 2) - a) / (x1 + b);
  14.  
  15. printf("Final result c = %.4f\n", c);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Final result c = 1.3488