The simplest Pascal program consists of only 9 characters:
begin
end.
Let's explain each character in the program:
The words
begin and
end are keywords in Pascal, i.e. words that have a special meaning assigned to them once and for all. In this case,
begin and
end serve as punctuation marks. The word
begin acts as the left, and
end – right bracket, and after the word
end there should be a dot. They limit the action section - the part of the program that is being executed.
What does our program do?
Since there is nothing between
begin and
end , our program does nothing, it just follows the rules of the Pascal language, it can be compiled and get an exe file - executable a file that can be run.