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("integers (i,j) and float (f) are:%d%d%f \n", i,j,f);
  10. g = (f + j )/i;
  11. printf("integers (i,j) and floats (f,g) are:%d,%d,%f,%f \n", i,j,f,g);
  12. return 0;
  13. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
integers (i,j) and float (f) are:523.000000 
integers (i,j) and floats (f,g) are:5,2,3.000000,1.000000