next up previous
Next: Main Programs and Procedures Up: The pseudocode Environment Previous: The while Loop

The repeat-until Loop

The repeat-until loop takes the following form:

\REPEAT <stmt> \UNTIL <condition>

For example,

\REPEAT
  some processing 
\UNTIL some condition is met

produces



\begin{pseudocode}[display]{}{}
\REPEAT
\mbox{some processing}
\UNTIL \mbox{some condition is met}
\end{pseudocode}



Donald L. Kreher
2000-02-18