168. DO WHILE loop iterates as long as condition at beginning is met.#

topic: Loops

Note

This tip is a draft1.

A DO WHILE loop iterates as long as the condition at the beginning of the loop is met. The syntax is

do while (condition) … end do

An infinite do loop allows the test for exiting to be made anywhere in the loop and is more flexible.



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.