fork(4) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a = 3, b = 2;
  6. float c = 0.0;
  7. c = (float)a/b; // That is c = 3/2;
  8. printf("%.1f", c);
  9. return 0;
  10. }
Success #stdin #stdout 0s 3456KB
stdin
1
2
10
42
11
stdout
1.5