Page 88 - Digicode_AI_class_8
P. 88

On running the above program, you will get the following output:






















            Program: To print multiplication table of an input number.














            On running the above program, you will get the following output:


























            The while Statement

            The  while  statement  executes  a  set  of  statements  repeatedly,
            until the logical expression evaluates to true. When the condition                             False
                                                                                          Test Expression
            becomes false, the control comes out of the loop. The syntax of
            while statement is given below:
                                                                                                  True
            while (test expression):
                   Statements                                                           Execute while Block




                 86    DigiCode AI-VIII
   83   84   85   86   87   88   89   90   91   92   93