You are on page 1of 3

Programming with Pascal

A Pascal Compiler
There are many Pascal compilers available however we will be using EzyPascal for our lessons. This
program can be downloaded from https://dolphin-bay-software-ezy-
pascal.software.informer.com/versions/ you can select the desired version, version 6.0 is
recommended.

Writing your first program


Once you have downloaded and installed EzyPascal you may run the program. The Pascal editor will
appear as shown below.

You can type your code in the blue section at the bottom and when you hit the Run button the result will
be displayed in the green section.

Type the code below in the blue section, replace name with your name and title with My First Program.

{name}

{title}

program myfirst;

begin

writeln('Hello World!');

end.

When you are finished typing press the Run button. Your program should look like this below.

Oxford Information Technology for CSEC page: 288-289


If you see Hello World! Displayed in the green part, your program is done.

How it works.
Words enclosed in { } are referred to as comments and are not compiled or executed.

The word program tells the compiler that the program has began and its name is “ in the case of our
example myfirst”.

The word begin is where the main program starts.

We write out instructions between begin and end

The main program ends at the word “END.” There must be a period.

Saving
You may save your program by clicking File > Save> then give your program a name and select a location
to save your file. You can later return to your program by running the file you saved.

Oxford Information Technology for CSEC page: 288-289


Class Work

Using the sample code in the handout,

1. replace name with your name,

2. title with a title for your program


3. add a writeln statement to indicate todays date
4. add another writeln statement to include anything of your choice
5. submit your code here.

Oxford Information Technology for CSEC page: 288-289

You might also like