Lab: Function Practice
- Write a function that rounds a double number to in integer
- Write a function that rounds a double number to one decimal place
- Write a function that rounds a double number to two decimal places
- Write a function that rounds a double number to three decimal places
Test your program with this main
Write ONE function to replace the above four that takes a second number
as a parameter that is the number of decimal places to round to.
Solution