165. Number of iterations in a loop is determined at the beginning.#

topic: Loops

Note

This tip is a draft1.

The number of iterations in a loop is determined at the beginning of the loop and is unaffected by changing the loop bound variables within the loop, but doing so may confuse the reader.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.