Module: Displaying text on the screen


Problem

1/5

Hello World! Displaying text on the screen

Theory Click to read/hide

Let's analyze a program that displays the phrase "Hello, world!"

begin
    writeln('Hello, World!');
end.

Let's take it in order:

begin - this is a keyword indicating the beginning of the action section - part of the program being executed.
writeln('Hello, World!'); - writeln()  - This is the name of the function responsible for displaying data on the screen. What we want to output is written inside the brackets. If we want to display some text, we put it in single quotes: 'for example' (For more on writeln see the previous task with id 37568).

end  - keyword, just like begin, only it denotes not the beginning of the action section, but its end (for more details, see the task with id 37563).< /span>

Problem

Change the phrase "Hello, World!" in the program to the phrase "Everybody loves kittens".