"Why the "1" at the end? "
Because the test in line 3 returns true until the last execution of line 6... at which time, $i is incremented to 1, and printed, BEFORE terminating the loop.In reply to Re: Simple adding numbers
by ww
in thread Simple adding numbers
by WojciechGajewski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |