fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i,j;
  5. float f,g;
  6.  
  7. i = 5; j = 2;
  8. f = 3.0;
  9. f = f + j / i;
  10. g = (f + j )/i;
  11.  
  12. printf("value of f,g is %f,%f\n", f,g);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 9432KB
stdin
12 9
stdout
value of f,g is 3.000000,1.000000