The if-else ladder

When multipath decisions are involved we make use of the if-else ladder. The if-else ladder is a chain of if where each has an associated if.The form of the if-else ladder is:
if(condition_1)
statement_2;
else if(condition_2)
statement_2;
else if(condition 3) statement_3;

No comments:

Post a Comment