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.
Type: Posts; User: Junky
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.
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...
An even better solution:
int i = 11;
while(i < 100) {
System.out.println(i);
i += 2;
}
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++;
}
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...
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...
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
}