HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to PascalVariablesData Types & ConversionOperatorsStringsConditions (if)Loops (for / while)Functions
REFERENCE
📖 Overview
🖥️ Output
writeln / write
📦 Variables
✍️ String
🔁 Condition & Loop
🧩 Function & Procedure
Pascal›REFERENCE›Output
🖥️

Output

Printing with writeln.

CommandDescription
writeln / writePrints the value (writeln moves to the next line).

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;
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 ends with end. (dot).
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code