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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!