Question: Write a small program that completes the following task: Ask the user to enter an integer. If it is between 1 and 100 (inclusive), print
Write a small program that completes the following task: Ask the user to enter an integer. If it is between 1 and 100 (inclusive), print "Square Root: " and the square root of that number. Then, calculate the square using the result from the prior step. Print this result as "Square Root Squared: " with the resulting value. Otherwise (if the value is not between 1 and 100), just print "Squared: " and the square of that number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
