write is a keyword wich indicates some characters to put on the screen
for example
...
begin
...
write("result=",a);
...
end
prints result=(the content of the variable a)
all the objects must be separed by a ,. writeln leaves a the line after the text