In the pascal lang almost every commands ended with semicolon
;
except
Begin or the end of the main program
End.,it is ended with dot.
if you want to know a contetnt of a variable then
you have to reference it by its name without apostrophe.
Look at this example:
Program commas_and_delimiters
;
Var digit
:Char
;
Begin
digit
:='#'
;
WriteLn(digit
); {this line writes digit's contents,like #}
{if you want to
write to the screen then
do it by apostrophe}
WriteLn('Press enter to quit...
');
{if you want to
write to the screen and
write the contents
of digit,
detach them with comma}
WriteLn('The first character is '
,digit
);
{if you have
another thought too,then detach with comma and
put the thoughts after that,of course between apostrophe}
WriteLn('The first character is ',digit
,'.Guess it please
');
{if you
want to write to the screen four times
the contents of the reserved area by the compiler,
called digit
,call its name
detach them with comma}
WriteLn(digit
,digit
,digit
,digit
);
End.{end of main program}
I hope that you understood now