fork download
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main ()
  5. {
  6. printf("%.0f, %.0f\n", 48.5, 49.5);
  7. printf("%.0f, %.0f\n", round(48.5), round(49.5));
  8. return 0;
  9. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
48, 50
49, 50