M5) Decreasing loop with continue
The loop in Listing 1 uses continue before its print statement.
for loop with continue (Question 1).
What does the code print?
- 4, 2, 0
- 4, 2, 0, -2
- Nothing is printed.
- 4, 2, 0, -2, -4
TipHow
continue works
The continue statement skips the rest of the current loop iteration and moves to the next value.