next up previous contents
Next: writeln Up: Printing to the Output Previous: Printing to the Output   Contents

begin...end

The keywords begin and end act like a pair of parentheses to enclose a Pascal program. Everything between these two keywords is considered the main program, which gets executed when the program is run.

Like all other reserved words that we will encounter, the words begin and end have special meanings.



Tak Auyeung 2003-12-03