Java Bootcamp Resources, launch
Guess the number
In this workbook, the user has to keep guessing a number until they get it right.
Store a "secret" number between 1 and 5. Then, prompt the user to enter a guess.
Set up a loop that keeps the user guessing until they get it right.
In other words, the loop should keep running while the guess is different from the secret.
After they guess the number, print:
You got it!
Visualizing the Runtime
After you solve this workbook, I still recommend watching the video solution on Udemy.
It will show you how to visualize the runtime using Visual Studio Code.