C nested if statement

Nested if statements play an important role in C programming, it means you can use conditional statements inside another conditional statement.

Structure of nested if

Example:

The following result is:-