Question: In C++ Write a program that from the main ask for a real number and the number of decimals to round to, your main will
In C++ Write a program that from the main ask for a real number and the number of decimals to round to, your main will call a function named rounding that has two formal input parameters, a real number x and an integer n (the number of decimals spaces to round to) . The function result should be x rounded to n decimal places.

Document1 - Word Kyle Schwab File Home Insert Design Layout ReferencesMailingsReviewView Tell me what you want to deo Share lease enter real number >15.9876 Please enter the nunber of decinals to round to 2 The rounded number is >> 15.99 Press any key to continue - Page 1 ot 1 0wordsLE + 100% O Type here to search ^ * 11/7/2017 en |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
