# Declare variables inside loops

**URL:** <https://fortran-lang.discourse.group/t/declare-variables-inside-loops/3395>\
**Category:** Help\
**Created:** [May 6, 2022, 6:09pm UTC](https://fortran-lang.discourse.group/t/declare-variables-inside-loops/3395 "2022-05-06T18:09:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sblionel](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/sblionel/32/853_2.png) [@sblionel](https://fortran-lang.discourse.group/u/sblionel)\
**Post date:** [May 7, 2022, 12:34am UTC](https://fortran-lang.discourse.group/t/declare-variables-inside-loops/3395/5 "2022-05-07T00:34:55Z")

</div>

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.

---

_[View the full topic](https://fortran-lang.discourse.group/t/declare-variables-inside-loops/3395)._
