This Pascal program simply displays the string "Hello World" in the screen
Comments are placed between brackets {}

Program Sample;{ Gives a name to the program. "Sample" is a variable for the name}
Uses Crt;
{ Allows the programmer to invoke the clrscr function and other screen related functions}
Begin
{ Designates the start of the program }
clrscr;
{ Clears the screen. If "uses crt;" is not present above, error will occur}
writeln('Hello World');
{Displays the string "Hello World" to the screen}
readln;
{asks for an input. However, in this program, it is only used to pause the screen before continuing}
End.
{Designates the end of the program. Take note of the period (.). End with no period indicates end of call or function but not the program itself}