Question: Write a program that asks the user to input an integer that is a perfect square. A perfect square is an integer that is equal
Write a program that asks the user to input an integer that is a perfect square. A perfect square is an integer that is equal to the product of another integer with itself; eg is a perfect square because it equals times Repeatedly force the user to input a new integer until they enter a perfect square.
Once the user has entered a perfect square, print its square root as an integer.
Hint: you can modulo a float by to get the decimal part of the float, eg equals and equals
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
