Question: JavaScript 20 Write a function that uses the Math.round() method to round any number with a decimal part less than or equal to 0.6 down.
JavaScript
20 Write a function that uses the Math.round() method to round any number with a decimal part less than or equal to 0.6 down. For example, the result of using the program with the number 3.6 should be 3 but the result of 3.69 should be 4. Use a loop to allow the user to enter as many numbers as desired and be sure to use an appropriate sentinel value for the user to end the program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
