Question: Write a C+t Program that will act as a guessing game in which the user has 3 tries to guess an embedded in the code

Write a C+t Program that will act as a guessing game in which the user has 3 tries to guess an embedded in the code number between 1 and 10. The program will tell the user each time whether he guessed high or low. If the user will guess, the program should display on the screen (Congratulations!) otherwise display (Sorry! The number was ). The output of your program should look like Show your code and the output. Please enter a guess: 3 Too low lse enter a guess: 9 Too high Please enter a guess: 7 You guessed the number lease enter a guess: 2 Please enter a guess: 9 Please enter a guess: 8 oo lou oo high oo high orry, the nunber was
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
