Hello! I will assume your answer was
false. Here is an explanation:
This loop iterates while page is
less than or equal to five. Therefore, on the first iteration,
1; that works. Then it is
2; that works. Then
3, 4, 5; you would expect that. The last one is more unexpected.
Due to the placement of the
6 before the loop ends-meaning the rest of the code within the loop must be iterated through before the condition (
while page <= 5) is evaluated again. That means
I'm reading page 6 gets printed before the loop ends.
I hope this helps!