Algorithms


Iterative Operations

Repeat Loop[**]

  1. repeat until true_or_false_condition

  2.        block of statements to repeat until the condition is true

While Loop

  1. while true_or_false_condition do

  2.        block of statements to repeat as long as the condition is true


[**] In many cases it is less confusing to write "until" loops in the format:

  1. repeat
  2.       Block
  3. until condition

[Prev][TOC][Next]


CS1104 Main Page
Last Updated 01/05/2000
© L.Heath, 2000