- Create a program from scratch to solution
You need to create a program which asks the user to guess a number between 1 and 10. If the guess is higher ask the user to guess lower, and if the guess is too low ask the user to guess higher.
Generate a random number for the user to guess.
Limit the number of guesses to 5 if the user doesn’t get the number in 5 guesses print sorry you lost.