I need help with java loops
i am making a program where they try to guess a number between 1 and 100 and i have it all but i cant figure out how to make a loop where if the number they enter is greater than answer than it tells them "your too high" and if the number they enter is too low it tells them "your to low" then they try again it repeats until they get it
so how would i do the loop
i am making a program where they try to guess a number between 1 and 100 and i have it all but i cant figure out how to make a loop where if the number they enter is greater than answer than it tells them "your too high" and if the number they enter is too low it tells them "your to low" then they try again it repeats until they get it
so how would i do the loop