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.
[ Previous page | Top of page | Next page ]
Copyright © 2001 Brian Hetrick
Page last updated 30 December 2001.
Tutorial
Building Blocks I
Control Flow I
Loops
Control Flow II
Basic I/O
Algorithms
A First Program
Answers
Modularization
Data Structures I
Recursion
Program Attributes
Building Blocks II
Algorithm Analysis
Structuring
Data Structures II
Abstract Types
Objects
Problem Analysis
Reference Card
![]()