Declare Integer count

For count=1 to 3 Step 2
Display count
End For
What would the output be?

1 answer

well, just follow the loop.

On entry, count=1
next iteration: count steps up by 2, so count=3
next iteration: count=5, so exit

so, the output is
1
3