You are on page 1of 7

CONTROL STATEMENTS

What is control statements?

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

Selection statements Looping statements Jumping statements

1. If-statement 1. goto statement


1. while loop
2. If-else statement 2. Break statement
3. Nested-If statement 2. Do-while loop
3. Continue statement
4. Switch statement 3. For loop
4. exit()
Sequence statement

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

You might also like