[Pascal – TUT Basic] Posts 1: Overview of Pascal

1. About the Pascal programming language

Pascal is a high-level programming language developed by Professor Niklaus Writh – University of Technology Zurich – Switzerland proposed in 1970 Pascal and named to commemorate the mathematician, famous French philosopher: Blaise Pascal.

[qads]

Characteristics of Pascal:

  • Grammatically and semantically simple, logical.
  • The structure of the program clear visible, easy to understand.
  • Corrective, improvements.

Some of the Pascal compiler:

  • TURBO PASCAL
  • QUICK PASCAL
  • UCSD PASCAL
  • ANSI PASCAL

However TURBO PASCAL proved many outstanding features, it has become a familiar language and popular with programmers.

2. Turbo Pascal

During the development process TURBO PASCAL has multiple versions 1.0; 2.0; 3.0; 4.0; 5.0; 5.5; 6.0; 7.0.

– Some frequently used shortcuts:
F2: Save
F3: Open
F9: Translate
Ctrl F9: Run
Alt F5:View Results
Alt X: Exit

3. The structure of a Pascal program

the. Declaration (may or may not)

Declaration may have the following:
+ Program Name PROGRAM
+ Declare use UNIT Uses
+ Declaring LABEL
+ Declaring constants CONST
+ TYPE type declaration
+ Variable declaration VAR
+ Declare subroutine PROCEDURE / FUNCTION

b. The body of the program

Start by keyword BEGIN and ends with the keyword END. (END and dots). BEGIN and END between. is the command.

BEGIN
	<các câu lệnh>;
END.
Download Turbo Pascal with DOSBox.
Set free Pascal on Linux

Follow: vietsource.net