Sign in Join
Wiki copytemporary

Revision 2 of 2, by WikiArchive on 11-4-2026. The page as it is now.

Basic Pascal Tutorial/Print version

Introduction

History of Pascal

Pascal Compilers

Hello, world

1. Chapter\

Basics

Program Structure

Identifiers

Constants

Variables and Data Types

Assignment and Operations

Standard Functions

Punctuation and Indentation

Programming Assignment

Solution

2. Chapter\

Input/Output

Input

Output

Formatting output

Files

EOLN and EOF

Programming Assignment

Solution

3. Chapter\

Program Flow

Sequential control

Boolean Expressions

Branching

Looping

Programming Assignments: Fibonacci Sequence and Powers of Two

Solutions

4. Chapter\

Subprograms

Procedures

Parameters

Functions

Scope

Recursion

Forward Referencing

Programming Assignment: the Towers of Hanoi

Solution

5. Chapter\

Data types

Enumerated types

Subranges

1-dimensional arrays

Multidimensional arrays

Records

Pointers

6. Chapter\

Final words


From the Free Pascal wiki, page "Basic Pascal Tutorial/Print version", as it stood on 2023-03-05 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.