Ladder else-if Statement
Control Flow

Syntax
if (boolean_expression_1)
{
//TB1
}
else if (boolean_expression_2)
{
//TB2
}
else if (boolean_expression_n)
{
//TB3
}
else
{
//Default-FB
}
Example:
#include <stdio.h>
void main()
{
int
num;
printf("Enter
any number: ");
scanf("%d",
&num);
if(num < 0)
{
printf("NUMBER
IS NEGATIVE.");
}
else if(num == 0)
{
printf("NUMBER
IS ZERO.");
}
else
{
printf("NUMBER
IS POSITIVE.");
}
}