fork download
  1. // C code
  2. // This program will divide two float numbers to yield a third integer number. // Developer: Faculty CMIS102
  3. // Date: Jan 31, XXXX
  4. #include <stdio.h>
  5. int main ()
  6. {
  7. /* variable definition: */
  8. float a, b, c;
  9. /* variable initialization */
  10. a = 5.2;
  11. b = 3.7;
  12. c = a / b;
  13. printf("Floats (a,b) and quotient (c) are : %f,%f,%f \n", a,b,c); return 0;
  14. }
Success #stdin #stdout 0s 9416KB
stdin
Standard input is empty
stdout
Floats (a,b) and quotient (c) are : 5.200000,3.700000,1.405405