Hi everyone i made a java guessing game where the where the user is asked to guess a secret number into an input box.
When the user enters the number there are 3 possibilitys which can be seen below in the code. How do i get the program to keep running until the correct answer is guessed while helping the user by stating it's to high or to low. And I have to use a sentinel controlled loop(while loop).
Basically when user inputs a number less then 23 it goes to the second loop and when the user inputs again
This time a number greater than 23 its unable to go back to the first loop because it's already past.