Remove declared iteration variables before for-loop

Match syntax found elsewhere by declaring iteration variables within for loop initialization.