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: | 1251 |
Created: | 2018-05-23 |
Download free Introduction to JPA for Beginners, course tutorial, a PDF file created by Bruce Campbell....
Object-oriented Programming in C#Download free course Object-oriented Programming in C#, pdf file on 485 pages by Kurt Normark....
Android Notes for ProfessionalsDownload free course Android Notes for Professionals, pdf file on 1329 pages by by Stack Overflow Community....
Classic Computer Science Problems in PythonDownload free course Classic Computer Science Problems in Python, pdf file on 224 pages by David Kopec....
Certified Programming with Dependent TypesDownload free course Certified Programming with Dependent Types, pdf file on 368 pages by Adam Chlipala....
RESTfull Web Services TutorialDownload a complet eBook about RESTfull Web Services, it's a free training document course in 448 pages by O'Reilly licensed under a Creative Commons....
C# Notes for ProfessionalsThe C# Notes for Professionals book is compiled from Stack Overflow Documentation. Text content is released under , the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the var...
A Whirlwind Tour of PythonDownload free course A Whirlwind Tour of Python, pdf file on 98 pages by by Jake VanderPlas....
C# and .NET course14 lessons to get you started with C# and .NET, free PDF tutorial by Jonathan Worthington ....
React JS tutorialDownload free React JS tutorial course in PDF, training file in 31 chapters and 110 pages. Free unaffiliated ebook created from Stack OverFlow contributor....