1982 | OriginalPaper | Chapter
Procedures
Author : Professor Dr. Niklaus Wirth
Published in: Programming in Modula-2
Publisher: Springer Berlin Heidelberg
Included in: Professional Book Archive
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
Consider the task of processing a set of data consisting of a header and a sequence of N similar individual units. It might be generally described as $$ \begin{array}{l} ReadHeader;\\ ProcessHeader;\\ WriteHeader;\\ FOR i : = 1 TO N DO\\ {\rm{ ReadUnit; ProcessUnit;}}\\ {\rm{ Write(i); WriteUnit}}\\ {\rm{END}} \end{array} $$