|
|
back to boardNote to the solution of the test number 3 Posted by Alflex 25 Feb 2011 21:49 The printing of the answer in C++ should be, e.g., in the form: cout << "Distance is " << setiosflags(std::ios_base::fixed) << setprecision(0) << 1000.0*sqrt(dist) << " km."; where dist is double value. You don't need to round off the answer with the help of some functions. |
|
|