A good answer might be:
count is: 1 count is: 3 count is: 5 after printing this, count is changed to 5+2=7 Done counting by two's. |
The Gatekeeper
There is no need for the loop control variable (count) to exactly hit the limit
that is tested for in the condition part of the
The value "5" passed the test.
Then it was incremented to a "7".
The "7" failed the test.
The condition part of a Once execution is in the loop body, it completely executes the loop body. Only after the complete loop body is executed does execution go back to the top of the loop, where the "gatekeeper" decides whether to let it execute the loop body again. |
QUESTION 3:
Say that the condition is |