Friday, October 5, 2007

How to work with IF厖.THEN厖ELSE statement

How to work with IF厖.THEN厖ELSE statement

To work with IF厖.THEN厖ELSE statement

Step 1

Description:

The ability is to make decision.

Declaration:

IF Boolean expression

THEN

Statements 1

ELSE

Statements 2;

Statements;

Example:

if a > 10 Then

Writeln(' This integer is more then 10')

Else

Writeln(' This integer is small then 10');

No comments: