Declare loop control variable inside the for