Learning To Code #6 (Number Guessing Game)

in #coding4 years ago

Number guessing game. (Exercise for beginners).

  1. Ask the user for two numbers.
  2. Generate a random number between these two numbers.
  3. Let the game begin.
    You have to ask for a number, if it's the same as the random number, then it's game over and the user has won.
  4. To make it more interesting -
    If the user's input is bigger than the random number, print out "The random number is smaller".
    If the user's input is smaller than the random number, print out "The random number is bigger".

Here is an example of how it should work.
guess.png

As always, if you got any questions then feel free to hit me up!🤓
Peace!✌️