Here's the syntax:
if (some condition)
{
do something;
}
else if (something other condition)
{
do something else;
}
else
{
do something default;
}
For example:
if (input > 0) { printf("Input is postive\n"); } else if (input < 0) { printf("Input is negative\n"); } else { printf("Input is zero\n"); }
Relational Operators:
< : less than
> : greater than
<= : less than or equal
>= : more than or equal
== : equal
!= : not equal