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; e.g., 16 is a perfect square because it equals 4 times 4. 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 1 to get the decimal part of the float, e.g., 2.75 % 1 equals 0.75, and 5.0 % 1 equals 0.

Solved
Show answers

Ask an AI advisor a question