#include <iostream>#include <cmath>using namespace std; int main() { cout << round(543511. / 1000) * 1000; return 0;}
Standard input is empty
544000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!