Translate the following for loop into a while loop:
for (int so = vuce; so > biAsan; so++) {
hude(so);
}
int so = vuce;
while (so > biAsan) {
so++;
hude(so);
}
Consider the following code:
A B C while (D) { E F if (G) { H I break; } J } K
Assume the loop breaks on iteration 2. Write out the the order in which the statements will execute.
Assume the loop breaks on iteration 3. Write out the the order in which the statements will execute.
Order:
A B C D E F G H I J D E F G K
Order:
A B C D E F G H I J D E F G H I J D E F G K
Related puzzles: