you print after incrementing but before the next loop iteration is tested.
just move the print to the top to see the difference.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Not understanding while loop counting
by LanX
in thread Not understanding while loop counting
by zapdos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |