writeln / write
Try it yourself →Prints the value (writeln moves to the next line).
Syntax
writeln(value);
Description
writeln prints and moves to the next line; write does not. Multiple values are separated by commas.
Example
program H;
{$MODE DELPHI}
begin
writeln('Hello World');
writeln(3 + 4);
end.Expected output
Hello World 7
When to use?
Showing the result.
Common mistakes
- ⚠️ Text in SINGLE quotes: 'Hello'. Program end end. (with a dot).