Declare iteration variables within for loop syntax

Removed variable declaration prior to the for loop to match the syntax seen elsewhere.

This is my first contribution to an open source project so any guidance would be appreciated.