That's because the original printf statement is not part of your loops.

Jim