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
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.
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.
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;
begin
end.
The Write command prints words on the screen.
program Hello;
begin
Write('Hello world');
end.
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 : | |
Downloads: | 1257 |
Created: | 2018-05-23 |
This tutorial will give you great understanding on Pascal Programming concepts, Download free PDF training course on 13 pages by B.A.C. Schopman....
Java Succinctly Part 2Download free course Java Succinctly Part 2, pdf file on 134 pages by Christopher Rose....
Practical C++ programmingThis tutorial is devoted to practical C++ programming. It teaches you the mechanics of the language, free training document under 549 designated to all level users....
Android Application Development for the Intel PlatformThe number of Android devices running on Intel processors has increased since Intel and Google announced, in late 2011, that they would be working together to optimize future versions of Android for Intel Atom processors. Today, Intel processors can be found in Android smartphones and tablets made b...
Download Struts TutorialThis is a tutorial for the Struts framework. It consists of a small application which is developed step by step.A free pdf training material course on 67 pages by Stephan Wiesner....
Objective-C tutorial for professionalsDownload free Objective-C tutorial course in PDF, training file in 51 chapters and 129 pages. Free unaffiliated ebook created from Stack OverFlow contributor....
JavaScript If Else free PDFDownload free course JavaScript If Else free PDF, pdf file on 4 pages by tutorialkart.com....
Programming for Computations - Python: A Gentle Introduction to Numerical Simulations with Python 3.6This second edition of the well-received book has been extensively revised: All code is now written in Python version 3.6 (no longer version 2.7). In addition, the two first chapters of the previous edition have been extended and split up into five new chapters, thus expanding the introduction to pr...
Introduction to C and GUI ProgrammingThe popular C programming language is used for a huge range of applications, from the tiny microcontrollers used in toasters and watches up to complete operating systems....
Introduction to C++ ,PointersHere you will learn how to get started with pointers in C++, how to access to the variables and memory, and how to use the pointers and arrays....