Page 28 - PowerPoint Presentation
P. 28

Multiway if..else...











                                     • Syntax for multiway if-else




                                          if (condition1){

                                                statements;
                                          }
                                          else if(condition2){

                                                statements;
                                          }

                                          else if(condition3){
                                                statemens;
                                          }

                                          ...
                                          ...

                                          else{
                                                statements;
                                          }
   23   24   25   26   27   28   29   30   31   32   33