Page 22 - PowerPoint Presentation
P. 22

The if...else...Statement











            o The if-else statement chooses between two alternatives statements



            o Syntax:









                                    if(expressions){

                                              statement(s) A

                                    }

                                    else{

                                              statement(s) B

                                    }
   17   18   19   20   21   22   23   24   25   26   27