Discuss else if ladder statement

No comments
Else If Ladder :-  This is a type of nesting in which there is an if ... else statement in every else part except the last else part. This type of nesting is frequently used in program for writing multi-way decisions and is also known as else if ladder or else if chain. 

  if (expression 1)
        statement A
     else
           if (expression 2)
               statement B
         else 
               if (expression 3)
                     statement C
               else
                       statement

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀