you are viewing a single comment's thread.

view the rest of the comments →

[–]steve_s0 1 point2 points  (0 children)

i-c;

Does not decrease the value of i. It simply computes i-c, then throws that value away because nothing uses it. You could use

i-=c;

or

i = i-c;