Jul 16
To show a multiway decision based several condition, we use the else if statement.
if (condition_1)
{
statements_1;
}
else if(condition_2)
{
statements_2;
}
…………
else if(condition_n)
{
statements_n;
}
else
{
statements;
}
To show a multiway decision based several condition, we use the else if statement.
if (condition_1)
{
statements_1;
}
else if(condition_2)
{
statements_2;
}
…………
else if(condition_n)
{
statements_n;
}
else
{
statements;
}
Recent Comments