[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: while/for statement — what's wrong in a code?
From: |
Liam Groener |
Subject: |
Re: while/for statement — what's wrong in a code? |
Date: |
Sat, 30 Apr 2011 03:20:41 -0700 |
On Apr 30, 2011, at 3:15 AM, Liam Groener wrote:
>
> Before the start of the for loop initialize p to 0 or whatever? The way
> you've written it, p will always be greater than 1 for all K's above 1.
Oop's, that should be initialize p before the while loop, not the for loop.