If else-if ladder Statement
- The if else-if expression is used to execute multiple conditions of one code. The if else-if statement syntax is given below.
Flowchart of else-if ladder statement in C
- The example of if-else-if statement in C language is given below.
Output
enter a number:4
number is not equal to 10, 50 or 100
enter a number:50
number is equal to 50