fork download
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. /* variable definition: */
  5. float a, b, c;
  6.  
  7. /* variable initialization */
  8. a = 3.0;
  9. b = 0.0;
  10. c = a / b;
  11.  
  12. printf("%f / %f = %f \n", a,b,c);
  13. return 0;
  14. }
  15.  
  16.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
3.000000 / 0.000000 = inf