I think that your current problem would be solved if you did as the instructions suggest -- if you nested if blocks. Don't nest any loops as it doesn't tell you to do that, nor do I suggest it. If...
Type: Posts; User: curmudgeon
I think that your current problem would be solved if you did as the instructions suggest -- if you nested if blocks. Don't nest any loops as it doesn't tell you to do that, nor do I suggest it. If...
I think I see what is confusing me: if statements are not loops. Loops use while or for statements, and that's a big difference.
You'll want to tell us more because "it didn't work" doesn't...
You state:
This confuses me as I see no nested loops in your code, just a single while loop.
Regarding your problem, consider using a boolean variable, inputBad, setting it to true, and...