What's wrong in declaring and initializing a variable inside a loop?
I like to declare the variables near to its usage, it helps on keeping things clear.