In the Loops page, a flowchart describes the algorithm under discussion. The algorithm in text form is:
In the Loops page, a flowchart fragment demonstrates the structure of the loop construct. The construct consists of two flowchart symbols: a diamond, representing a decision; and a rectangle, representing processing.
The diamond is on the centerline of the diagram, with the rectangle below than the diamond, similarly on the centerline. A short arrow leads into the top of the diamond. The diamond contains the text “condition.” An arrow goes out the bottom vertex of the diamond into the rectangle. Another arrow goes out the side vertex, then goes around the rectangle, returns to the centerline, and points down. The rectangle has the text “Body.” An arrow goes out the bottom of the rectangle, up around the rectangle and the diamond, and joins the arrow leading into the diamond.
Click here to return to the Loops page.
Copyright © 2001 Brian Hetrick
Page last updated 30 December 2001.
Building Blocks I
Control Flow I
Control Flow II
A First Program
Data Structures I
Building Blocks II
Data Structures II