Webastor - Programming Tips and Tricks

Programming language => Java => Topic started by: Yuvraj on October 27, 2014, 10:49:08 PM

Title: Java would you like to play again?
Post by: Yuvraj on October 27, 2014, 10:49:08 PM
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.
Title: Re: Would you
Post by: Olivier on May 23, 2018, 04:24:00 PM
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.