Control Statements
Control Statements
Statements
SHUBHANSHU & AYUSH
What are Control statements are used in a
programming language to control the flow
of the program. They are nothing but a
control keyword or statements that are used in a
program to transfer the flow of control to
statements? another statement based on the
conditions.
There are various types of control
flow statements
01 IF STATEMENT
of
If Statements. 03 NESTED IF STATEMENT
04 IF/ELSE-IF LADDER
Simple If Statement
It is the most basic statement among all control flow
statements in C++.
It evaluates a Boolean expression and enables the
program to enter a block of code if the expression
evaluates to true.
Simple If Statement
If
If/Else Statement
Else
Nested If Statement
te s
Ne
d
If
If-Else-If Ladder
If/Else-If Ladder
se
El f
I
Switch Statement
h
itc
Sw
THERE ARE VARIOUS TYPES OF LOOPS
of 02 WHILE LOOP
r
Fo
While Loop
hile
W
Thank
you!!