Question: Create a script file that uses a while loop to ensure that data entered to calculate the volume of a cylinder is valid (meaning both
Create a script file that uses a while loop to ensure that data entered to calculate the volume of a cylinder is valid (meaning both the radius and heights entered by the user are greater than 0). If the input is not valid then display an error message and ask the user to renter the values until the user enters valid input. Once the Input is valid then calculate the volume and display the results (nicely formatted)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
