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