Page 17 - PowerPoint Presentation
P. 17

If statement











            o The if statement is used to implement a decision



            o When a condition is fulfilled, one set of statements is executed




            o Syntax:
                                                              if(condition) statement;
   12   13   14   15   16   17   18   19   20   21   22