Professional Documents
Culture Documents
CONDITIONAL If STATEMENT
CONDITIONAL If STATEMENT
Introduction
if (condition)
{
statement;
}
else
{
statement;
}
FORMAT: Flowchart of
nested if STATEMENT nested if STATEMENT
if (condition1)
{
statement;
}
else (condition2)
{
statement;
}
.
.
else
{
statement;
}
Example:
• Write a program that determine if the first
inputted number is greater or lesser or equal
to the second inputted number.
References:
[1]“C Conditional Statement: IF, IF Else and Nested IF Else with Example”. [Online].
Available: https://www.guru99.com/c-if-else-statement.html. [Accessed: 15-Aug.-2020].