Professional Documents
Culture Documents
CONTROL STATEMENTS Loops
CONTROL STATEMENTS Loops
The flow of control jumps from one part of the program to another,
depending on calculations performed in the program.
BLOCK A
BLOCK B
BLOCK C
Control statements
The sequence construct means the statements are being executed sequentially. This
represents the default flow of statement.
STATEMENT 1
STATEMENT 2
STATEMENT 3
Selection
The selection construct means the execution of statements depending upon a condition
evaluates true, a set of statements is followed.
If statement
Syntax
If( condition ) false
Condition
statement1;
?
Statement
true
Statement 1
Statement 2