Instead of telling you the answer, I'll tell you how to get the answer.

Simply put in diagnostic printfs(). For each pass through the loop, print out i. You can also put in "Here"s to indicate...