> The problem is that the initial value of i is zero, so the test (!i) returns
> true for the first line. One solution is to reverse the value of i
Thank you that solves the problem.
> Setting the variable Pre to zero doesn't seem to have any use, so I
> removed it.
Yes sorry about that i...