Let's say I have this:
while (a) {
while (b) {
if (b == 10) {
break;
}
}
}
Question: Will the break statement take me out of both loops or only from the inner one? Thank you.
See Question&Answers more detail:osLet's say I have this:
while (a) {
while (b) {
if (b == 10) {
break;
}
}
}
Question: Will the break statement take me out of both loops or only from the inner one? Thank you.
See Question&Answers more detail:os