4.2 Multiple invocation example

Let us consider algorithm 2. This code is not much different from that of algorithm 1. However, it does help to illustrate the flexibility of subroutine invocation. Here, we invoke subroutine ``abc'' twice.


\begin{algorithm}
% latex2html id marker 119\begin{algorithmic}[1]
\SUB{abc}...
...d{algorithmic} \caption{A program with multiple invocations.}
\end{algorithm}



Copyright © 2006-10-12 by Tak Auyeung