-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95fb8e1
commit ff0a50a
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# Square-Cube-Roots | ||
# Square-Cube-Roots | ||
Write a C Language Program that will prompt for and read in a positive integer. Use a do…while loop to continuing 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. |