fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int a = 3;
  5. int b = 10;
  6. float c;
  7. c = (float) b/ a;
  8. printf("%f\n", c);
  9. return 0;
  10. }
Success #stdin #stdout 0s 4292KB
stdin
Standard input is empty
stdout
3.333333