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: | 1242 |
Created: | 2018-05-23 |
Learn how to accelerate C++ programs using data parallelism. This open book enables C++ programmers to be at the forefro.....
Structured programming with C++This C ++ course is for beginners who have never programmed. Complet and free PDF document about C++ programming....
Java for Small TeamsThis book is an attempt to capture what good Java code looks like and the practices that help produce it. This document is intended for consumption by anyone involved with writing server side Java code. From developers writing Java for the first time through to seasoned technical leads serving multi...
Essential GoThis book written to provide clear and concise explanation of topics for programmers both starting to learn the Go programming language as well as those diving in more complex topics. Most examples are linked to online playground that allows you to change the code and re-run it....
Introduction to Programming using Fortran 95/2003/2008This text provides an introduction to programming and problem solving using the Fortran 95/2003/2008 programming language. This introduction is geared for non computer science majors. As such, this text is not a complete, comprehensive guide to the Fortran 95/2003/2008 programming language. The pri...
Getting started with Fortran languageDownload free Fortran tutorial course in PDF, training file in 14 chapters and 83 pages. Free unaffiliated ebook created from Stack OverFlow contributor....
Practical Artificial Intelligence Programming in JavaThis book uses both best of breed open source software and the author's own libraries to introduce the reader to Artificial Intelligence (AI) technologies like genetic algorithms, neural networks, expert systems, machine learning, and statistical natural language processing (NLP)....
Android developement for beginnersDownload Android Tutorial in PDF ,free training document for beginner's Android Development ,file under 26 pages by (RNOC)...
C++ ,Pointers and MemoryThis tutorial explains how to use pointers and memory and how the pointer works.A complete training document in PDF with sample code By Nick Parlante....
Advanced R CourseDownload free course Advanced R Course, pdf file on pages by Self-publishing....