And this should be just a for loop and each time you need to do a i++.
the condition of the for loop does nothing now.