Search:

Type: Posts; User: Junky

Search: Search took 0.21 seconds.

  1. Replies
    18
    Views
    6,231

    Re: Prompt user to repeat

    Really? Your last five posts say otherwise.

    I'm sorry but how you can you justify giving incorrect advice simply because it would be correct if the OP asked a different question? That's crazy talk.
  2. Replies
    18
    Views
    6,231

    Re: Prompt user to repeat

    Hey you are the one who keeps trying to argue with me and giving me ammunition to fire up your backside. As I said earlier if you had just accepted the criticism and left at that this conversation...
  3. Replies
    18
    Views
    6,231

    Re: Prompt user to repeat

    An even better solution:

    int i = 11;
    while(i < 100) {
    System.out.println(i);
    i += 2;
    }
  4. Replies
    18
    Views
    6,231

    Re: Prompt user to repeat

    I'd say it is poorly formatted, has 2 syntax errors and the same result can be achieved by:

    int i=10;
    while(i<100){
    if(i%2 != 0) {
    System.out.println(i);
    }
    i++;
    }
  5. Replies
    18
    Views
    6,231

    Re: Prompt user to repeat

    Well you thought wrong and your suggestion to use a continue statement was wrong. With you continuing to discuss the matter only leads me to think that you are trying to justify your advice. We all...
  6. Replies
    18
    Views
    6,231

    Re: Prompt user to repeat

    A while loop is going to continue anyway if you don't change the condition so using continue is totally pointless. Did you read my pseudocode? It achieves what the OP wants without a continue...
  7. Replies
    18
    Views
    6,231

    Re: Prompt user to repeat

    You will need nested loops

    loop while user wants to keep going {
    inner loop ten times {
    ask question
    ....
    }
    ask if user wants to try again
    }
Results 1 to 7 of 7