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