Programming Languages

2. Programming Paradigms

2.4. NOTE

Every pascal program generally has a heading statement, a declaration and an execution part strictly in that order. Following format shows the basic syntax for a Pascal program

program {name of the program}

uses {comma delimited names of libraries you use}

const {global constant declaration block}

var {global variable declaration block}

function {function declarations, if any}

{ local variables }

begin

end;

procedure { procedure declarations, if any}

{ local variables }

begin

end;

begin { main program block starts}

end. { the end of main program block }