If-Then Statement

The if-then statement is the simplest form of control statement, frequently used in decision making and changing the control flow of the program execution.

Syntax

if <condition> then <statement>

Where condition is a relational expression and statement is a simple or compound statement.

Flow Diagram

// keep

Reference

results matching ""

    No results matching ""