Published: 11 Apr 2021 › Updated: 11 Apr 2021
Learning To Code #6 (Number Guessing Game)
Number guessing game. (Exercise for beginners).
- Ask the user for two numbers.
- Generate a random number between these two numbers.
- 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. - 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.
As always, if you got any questions then feel free to hit me up!🤓
Peace!✌️
Leave Learning To Code #6 (Number Guessing Game) to:
Read more #coding posts
Best Posts From steify
We have not curated any of steify's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From steify
- Things Didn't Go As Planned.
- Learning To Code #8 (ArrayList)
- New Project (MP3 Player) #1
- Learning To Code #7 (Loops)
- Learning To Code #6 (Number Guessing Game)
- Learning To Code #5
- How To Learn Coding
- Learning To Code #4 (Array exercise + Chart progress)
- Learning To Code #3
- Learning To Code #2
- Learning To Code #1
- Personal Sneaker Investments.📈 part 1.
- Air Jordan 11 Cool Grey.
- Air Jordan 5 Raging Bull.
- Nike Dunk Low Medium Curry.
- Air Jordan 11 Low IE Bred.
- Supreme/Nike SB Dunk Low.
- The Air Jordan 12 Twist.
- Nike Dunk Low PRM Medium Curry.
- Create your own Nike Dunk Low.