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