Page 33 - PowerPoint Presentation
P. 33

Nested If











            • It is often necessary to include an if statement inside another.




                   Such an arrangement is called a nested set of statements.




            • Put an if statements within another if statement : nested




                   control structure





            • In general, any problem that involves a multiway branch can




                   be solved (coded) using Nested-if (including multiway if-else




                   and switch)
   28   29   30   31   32   33   34   35   36