Posted by Chris Knestrick on November 01, 2001 at 18:55:26:
In Reply to: Re: Project posted by Chris Knestrick on November 01, 2001 at 18:22:54:
Let me follow myself up with a practical suggestion - trace through the last iteration of your first loop by hand and see what happens. Put another way, pretend that the usage is 1 and there is only one input value, and trace through. This procedure (and similar variations) is a fairly standard way of testing the boundary conditions of a loop and should be something that becomes a habit when testing/debugging them.
Post a Followup