*/
Check out and contribute to CodePedia, the wiki for developers.
*/

View \PROCED1.PAS

Getting Started with the Pascal tutorial, source

Submitted By: WEBMASTER
Rating: (Not rated) (Rate It)


(* 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 *)

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.