In this article,Multiple if and If-else control structures are explained in detail with examples.
In this control structure, we use multiple if statements one after the other/sequential as follows.
Syntax
if(condition 1)
{---
body1;
---
}
if(condition 2)
{---
body2;
------
}