
Chapter 7
Repetition
7.1 Introduction
This chapter presents the repetition structure and specifying, describing, and im-
plementing algorithms in developing computational models. This structure and the
corresponding statements are discussed with flowcharts, pseudo-code, and in the C
programming language. The repetition structure specifies that a block of statements
be executed repeatedly based on a given condition. Basically, the statements in the
process block of code are executed several times, so this structure is often called a
loop structure. An algorithm that includes repetition has three major parts in its form:
1. the initial conditions
2. the steps ...