Write down about the else if ladder

Last updated on June 13th, 2020 at 08:25 pm

The else if ladder :

When a multipath decision is involved then we use else if ladder. A multipath decision is a chain of ifs in which the statement associated with each else is an if. It takes the following general form,





This construct is known as the else if ladder. The conditions are evaluated from the top, downwards. This can be shown by the following flowchart,

Leave a Reply

Your email address will not be published. Required fields are marked *