Christopher Cave wrote:
> I have just come across a feature in the behaviour of NEXT in FOR-loops
> which is a bit puzzling.
"END FOR" and "NEXT" are exactly the same commands, and what they do
is "compare counter to limit. If below limit, increase counter and
loop again, if not just continue". Therefore the "NEXT i" statement in
line 120 at the end just sees that there's nothing to do and lets the
execution flow continue. This way an even number can get through to
the PRINT statement.
I know that other languages like C behave differently in this respect.
Marcel