#include <math.h>#include <stdio.h> int main (){printf("%.0f, %.0f\n", 48.5, 49.5);printf("%.0f, %.0f\n", round(48.5), round(49.5));return 0;}
Standard input is empty
48, 50 49, 50
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!