CPS 1 - Spring, 1997 - Ramm 2/5/97 #9
Chapter 2. Text Manipulation and Algorithm Design
- Character Translation
The "CryptoQuote" Problem
translate.pas
translate2.pas
- The Controlled WHILE Loop
... and it'll all happen again ...
- WHILE logical expression DO
- BEGIN
- statement;
- ...
- statement;
- END
- statements repeated as long as logical expression is true
- For proper loop: at least one of previous
statements must cause change in logical expression
- More Looping Examples (Definite Loops)
loop2.pas
loop3.pas
- More Looping Examples (Data Conrolled Loops)
adder.pas