Search:

Type: Posts; User: hashirama

Search: Search took 0.31 seconds.

  1. Replies
    5
    Views
    205

    Re: problems with loop

    Its executing but incorrectly , its says invalid choice even if its one of the right answer, and then he asks again , then stops
  2. Replies
    5
    Views
    205

    Re: problems with loop

    well its supposed to print invalid answer each time the answer is not 1,2,3 or 4
  3. Replies
    5
    Views
    205

    problems with loop

    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");
    ...
Results 1 to 3 of 3