V knihovně cmath máš funkci round().
http://www.cplusplus.com/reference/cmath/round/
#include <cmath>
...
cout << round((a + b + c) / (float)3);
V knihovně cmath máš funkci round().
http://www.cplusplus.com/reference/cmath/round/
#include <cmath>
...
cout << round((a + b + c) / (float)3);