Question: Write a C Language Program that will prompt for and read in a positive integer. Use a do...while loop to continue reading until a positive
Write a C Language Program that will prompt for and read in a positive integer. Use a do...while loop to continue reading until a positive integer is entered. Your program will then compute to three decimal places the square root and the cube root for each positive integer from 1 up to and including the entered value. Use a for loop to perform the calculations and display a table on the screen showing each integer and its square root value and cube root value. The table should have an appropriate heading for each of the three columns (value, square root, and cube root). The table data should be the numbers only, properly formatted so that the columns align down the screen. Place all of the above coding within a while loop. In that while loop, include a prompt message as to whether the user wishes to execute the program again, based on the keyboard entered response to the prompt message. Run through the program again only if that was the selection made. Demonstrate your working program for the Instructor. Include a commented listing with your report
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
