home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Education Master 1994 (4th Edition)
/
EDUCATIONS_MASTER_4TH_EDITION.bin
/
files
/
progscal
/
ptutor2b
/
proced1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-01-15
|
534b
|
26 lines
(* Chapter 5 - Program 1 *)
program First_Procedure_Call;
var Count : integer;
procedure Write_A_Header;
begin
Writeln('This is the header');
end;
procedure Write_A_Message;
begin
Writeln('This is the message and the count is',Count:4);
end;
procedure Write_An_Ending;
begin
Writeln('This is the ending message');
end;
begin (* main program *)
Write_A_Header;
for Count := 1 to 8 do
Write_A_Message;
Write_An_Ending;
end. (* of main program *)