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. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:10:2: error: expected ‘;’ before ‘g’
  g = (f + j )/i;
  ^
stdout
Standard output is empty