Its executing but incorrectly , its says invalid choice even if its one of the right answer, and then he asks again , then stops
Type: Posts; User: hashirama
Its executing but incorrectly , its says invalid choice even if its one of the right answer, and then he asks again , then stops
well its supposed to print invalid answer each time the answer is not 1,2,3 or 4
Hi i juste want to know why this loop only executate 1 times instead of infinite(that's what i want)
while (answer<1||answer>5);{
System.out.println("Votre choix est invalide");
...