# Fortran in 100 Seconds

**URL:** <https://fortran-lang.discourse.group/t/fortran-in-100-seconds/3718>\
**Category:** Uncategorized\
**Created:** [June 10, 2022, 5:40pm UTC](https://fortran-lang.discourse.group/t/fortran-in-100-seconds/3718 "2022-06-10T17:40:43Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nbehrnd](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@nbehrnd](https://fortran-lang.discourse.group/u/nbehrnd)\
**Post date:** [June 10, 2022, 10:06pm UTC](https://fortran-lang.discourse.group/t/fortran-in-100-seconds/3718/7 "2022-06-10T22:06:03Z")

</div>

Maybe the author is used to Python where one may define and use variables «on the fly», but the example to loop with

```fortran
program myApp

   implicit none

   do n = 1, 10
      doubled = n*2
      print *, doubled
   end do

end program myApp

```

won’t work.

![loops](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/b/be4e48f01461bdb3877d267d860bb5e4ba59e755.png)

---

_[View the full topic](https://fortran-lang.discourse.group/t/fortran-in-100-seconds/3718)._
