Java Bootcamp Resources ->
Module 1 ->
5. Loops, open Workbook 5.8.
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!