9/17/2008
9/17/2008
9/17/2008
9/17/2008
Definition
•Loop (Repetition) statements control a block (=paragraph) of code to be executed for a fixed number of times or until a certain condition is met.
•Managed loop: Count-controlled loop(repetitions) terminate the execution of the block after it is executed for a fixed number of times.
•Unmanaged loop: Sentinel-controlled loop(repetitions) terminate the execution of the block after one of the designated values called a sentinel is encountered.