To work with IF…….THEN……ELSE statement
Step 1
Description:
The ability in make decisions.
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:
Post a Comment