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