CONTROL STATEMENTS
BY
KOTA ABHISHEK
24911A6636
CSE(AI & ML)-A
CONTROL STATEMENTS
Control Statements in C help the computer execute a
certain logical statements and decide whether to enable
the control of the flow through a certain set of statements
or not.
They allow programmer to make decisions, repeat actions
and control the program’s flow based on specific
conditions.
CONDITIONAL STATEMENTS
The Conditional Statements are used to evaluate
one or more conditions and make the decision
whether to execute a set of statements or not.
These decision-making statements in C decides
the direction of the flow of program execution
SIMPLE IF STATEMENT
It is the simplest decision-making statement.
It is used to decide whether a certain statement or
block of statements will be executed or not.
If a certain block of statements is true then these
statements are executed otherwise not.
NESTED IF
A nested if in C is an if statement that is the target
another if statement.
Nested if statements means an if statement inside
another if statement.
We can place an if statement inside another if statement.
IF-ELSE-IF LADDER
The if-else-is ladder statements are used when the user
has to decide among multiple options.
As soon as one of the conditions controlling the if is true,
the statement associated with that if is executed.
If none of the conditions is true, then final else statement
is executed.
THANK YOU
BY
KOTA ABHISHEK
24911A6636
CSE(AI & ML)-A