You are on page 1of 14

CONTROL STRUCTURE

Control structure
Control structure is a
structure of statements
in programming that
allows the programmer
to control the flow of a
program.

SEQUENCE

SELECTION

SEQUENCE

SELECTION

sequence
linear execution of codes within a
program
statements are executed one by one

selection
program have to make a decision
based on the situation given.
If...Then...Else statement

DIFFERENT
sequence
Execute
statement one
by one in liner

different
Execution flow

To execute code usage


line by line
No decision
symbol
Flow chart

selection
Execute
different
statement for
different
condition
To implement
decision
making

WHICH ONE

You might also like