Java would you like to play again?

Started by Harjot, October 27, 2014, 10:49:08 PM

Previous topic - Next topic

Yuvraj

Hi ! Hello, I would like to ask you a question that I can not answer, java would you like to play again It is urgent, Thank you kindly answer me please quickly enough.

Olivier

You can ask the player to confirm the answer before break out the while loop.

add question before line24: win=true;
and check the answer, then decide break out or reset the guess number.