Pascal (Introduction Update)
Pascal (Introduction Update)
PROGRAMMING USING
PASCAL
Semi-colon ;
5. The begin/end keyword pair is used to delimit the body of the program as
well as logical blocks within the program.
For example, when multiple statements are to be executed within a while
loop, such statements are encapsulated within a begin/end pair. For every
begin in a program, there must be a corresponding end statement.
const
pi: Real = 3.14;
var
c, d: Real;
10
11
12
13
Basic layout of a Pascal program
14
Program
Header
Const //declare constants here Constant and Variable
Var //declare variables here declarations
Begin
// place statements inside here. Main of the program
End.