1.  Write a program that read in a number and gives the user 3 chances to guess the square of that number, if the user gets the square right, the program stops and display the message “you are correct”, if the user gets the guess wrong, the program displays the message “wrong guess please try again” if 3 chances have been exhausted the program stops and displays the message “You have exhausted all three chances”.​

Solved
Show answers

Ask an AI advisor a question