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