web analytics

Write down about the else if ladder

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,

Thank you. Take a moment to share 🙏