Question: Guessing game: Write a program that produces a random number between 1 and 100, and then ask the user to guess the number. If the
Guessing game: Write a program that produces a random number between 1 and 100, and then ask the user to guess the number.
- If the user guesses the correct number then say: Congratulations, you won.
- If the number that the user guessed is less than the number of computer produced, then say: Your number is lower than my number, guess again.
- If the number of user guessed is greater than the number of computers produced, then say: Your number is greater than my number, Guess again.
So your program should keep asking the user to guess the number until s/he guesses correct. python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
