Control
Structures
What are Control Structures?
A part of a program that helps
decide what the program should
do next, based on certain
conditions.
There are 3 main types of control
structures:
1. Sequence
2. Selection
3. Repetition
Control
Structures
What is Sequence?
In sequence, the steps are done
one by one, in order, from the
start to the end.
For example, imagine you are
following a recipe. You add flour first,
then sugar, then mix it. Each step
follows one after the other in a
specific order.
Everything happens in order!
Control
Structures
What is Selection?
Selection helps you make a
choice based on a condition (like a
yes or no question).
Depending on the answer, the
program does different things.
If it's a rainy day, you go to the library.
If it's not rainy, you go to the
playground. The program decides
where to go based on the weather.
Control
Structures
Flowchart Symbol for Selection
The decision box is a diamond
shape.
It helps ask a question.
If the answer is Yes, the
program follows one path.
If the answer is No, it follows
another path.
Control
Structures
Repetition
Repetition means repeating a set
of instructions until a condition is
met.
This is like saying, "Do something
over and over until something
happens.
If you’re cleaning your room, you
pick up one toy, and then you
keep picking up toys one by one
until the room is clean.
Control
Structures
Flowchart Symbols
Oval (Start/End): Marks the
beginning or end of a process.
Rectangle (Process): Shows an
action or task (like multiplying
numbers).
Control
Structures
Parallelogram (Input/Output): Used
for getting input (like asking for the
price) or showing output (like
displaying the total).
Diamond (Decision): Used to ask a
question (like, "Is today rainy?"). It has
two paths: Yes or No.