Technically, the execution section contains a list of command statements enclosed between the words Begin and End. Each command statement is ended with a semicolon ( ; ). At the end of the execution section, write a full stop ( . ).

Begin
   Statement1;
   Statement2;
   ...
End.

In the execution section you perform several calculations. To produce your end result, you have to perform a series of calculations in the command statements.

The command statements can be any of the following:

Value Assignment

Store a value inside a variable

Function Call

Use the results of other functions (programs) in your calculations

Condition

Control what statements are executed based on certain conditions

Loop

Repeat the execution of some statements for a fixed number of times or as long as a certain condition is valid

Command statements are executed in the exact order that they are written in the program. Some basic constructs can be used inside the command statements, these are:

Block Statements

Combine several single statements into one

Expressions

Calculate a numeric or Boolean value

When you have calculated your end result, you can then do two things with it:

▫       Plot the result on the screen. You do this with the drawing functions. See Drawing Functions.

▫       Put the result into the variable Result. You can then use it again in other programs. See Value Assignment.

Erfahren Sie mehr:

Value Assignment

Function Call

If Conditions

Case Conditions

For Loops

While Loops

Repeat Loops

Block Statements

Expressions