Learn Pascal Programming Tutorial

This complete course progressively introduces the basics of programming. The support language is Pascal and the development environment chosen by the author is Lazarus.
In the first part are gathered useful notions to introduce before starting properly the course of programming. The following sections are devoted to subroutines, control structures, tables, structured types, and files, respectively.

Table of contents

  • Lesson 1 - Introduction to Pascal
  • About Pascal
  • What you will need
  • Your first program
  • Compiling
  • More commands
  • Using commands from units
  • Comments
  • Lesson 2 - Colors, Coordinates, Windows and Sound
  • Screen coordinates
  • Windows
  • Sound
  • Lesson 3 - Variables and Constants
  • What are variables?
  • Using variables
  • Calculations with variables
  • Constants
  • Lesson 4 - String Handling and Conversions
  • Lesson 5 - Decisions
  • if then else
  • Case
  • Lesson 6 - Loops
  • For loop
  • While loop
  • Repeat until loop
  • Break and Continue
  • Lesson 7 - Arrays
  • Sorting arrays
  • Lesson 8 - Types, Records and Sets
  • Lesson 9 - Procedures and Functions
  • Global and Local variables
  • Functions
  • Lesson 10 - Text Files
  • Lesson 11 - Data Files
  • Lesson 12 - Units
  • Lesson 13 - Pointers
  • What is a pointer?
  • Declaring and using typed pointers
  • Lesson 14 - Linked Lists
  • What is a linked list
  • Single linked lists
  • Queues

About Pascal

The Pascal programming language was created by Niklaus Wirth in 1970. It was named after Blaise Pascal, a famous French Mathematician. It was made as a language to teach programming and to be reliable and efficient. Pascal has since become more than just an academic language and is now used commercially.

What you will need

Before you start learning Pascal, you will need a Pascal compiler. This tutorial uses the Free Pascal Compiler. You can find a list of other Pascal compilers at TheFreeCountry's Pascal compiler list.

Your first program

The first thing to do is to either open your IDE if your compiler comes with one or open a text editor.
We always start a program by typing its name. Type program and the name of the program next to it. We will call our first program "Hello" because it is going to print the words "Hello world" on the screen.

program Hello;

Next we will type begin and end. We are going to type the main body of the program
between these 2 keywords. Remember to put the full stop after the end.

program Hello;


The Write command prints words on the screen.

program Hello;


Write('Hello world');

You will see that the "Hello world" is between single quotes. This is because it is what is called a string. All strings must be like this. The semi-colon at the end of the line is a statement separator. You must always remember to put it at the end of the line.

Size : 274.011 Kb
File type : pdf
Downloads: 1243
Created: 2018-05-23

Others Pascal Tutorials

The Pascal Programming Language

Others related eBooks about Learn Pascal Programming Tutorial

Learning Perl Through Examples

Download tutorial intituled Learning Perl Through Examples, it's a free training document under 72 pages by Yun Shen....

Introduction to programming with Fortran 95

Introduction to programming with Fortran 95. This tutorial aim to provide an introduction to programming with Fortran 95. Fortran is particularly suitable for science and engineering....

C# : Practical Guide for Programmers

Download a free Csharp tutorial in PDF by Michel de Champlain .A complet training document under 262 pages for intermediate level-users....

Haskell Tutorial for C Programmers

This book is written to introduce Haskell for programmers of imperative languagues, including C, C++, Java, Python, and Pascal, etc....

Ruby Hacking Guide

The Ruby Hacking Guide is a book that explains how the ruby interpreter (the official C implementation of the Ruby language) works internally. To fully understand it, you need a good knowledge of C and Ruby. This book is going to investigate ruby as a whole....

Exploring Data with Python

Python has become a required skill for data science, and it's easy to see why. It's powerf..., download free Python tutorial in PDF (110 pages) created by ....

Csharp programming

Download C# PDF Tutorial for free, it consisting of 29 chapters and 175 pages covering all the most important C# concepts. This tutorial is intended for beginner programmers, and we recommend you to go through all the chapters, to get the most out of it as possible....

Introduction to (Java Server Page) JSF

With this PDF tutorial you will learn how to write Your own JSF Components.Free training document for download....

Java programming

This document is about a Java programming ,a free pdf tutorial for beginners a basic knowledge of object-oriented programming is assumed....

Open Data Structures (in Java)

Download free course Open Data Structures (in Java), pdf file on 334 pages by Pat Morin....