Number Guessing Game
Learn about infinite looping and use it to perform nondeterministic repetition.
We'll cover the following
Problem
Write a program that generates a secret a number (0–9) that the user guesses. The program prompts the user to enter a guess and gives feedback, such as "too big" or "too small." The program ends when the correct answer is entered.
Get hands-on with 1400+ tech skills courses.