Originally Posted by
RaoPatek
if(guess==nbr)
{
System.out.println();
System.out.println( "That's right!!! Took ya long enough! ;P \n It took you how many tries? " + tries + " was it? Haha, thanks for playing!" );
}
else
{
do
{
System.out.println();
System.out.println( "Haha! WRONG! Try again" );
System.out.print( "Your Guess:" );
guess = keyboard.nextInt();
tries++;
}
while ( guess != nbr );
if ( guess == nbr )
{
System.out.println();
System.out.println( "That's right!!! Took ya long enough! ;P \n It took you how many tries? " + tries + " was it? Haha, thanks for playing!" );
}
}
Try this out may it Helps...
SPOON FEEDING is not allowed @RaoPatek. I will recommend you to read the Forum Rules.