Declare variables inside loops

The only new feature here is being able to specify the KIND of integer that the loop control variable should have. It always has to be some kind of integer. You’re not really declaring it, as it is a construct-scope variable.