Page 116 - Trackpad_V5_Book 8
P. 116

Program 15: To demonstrate the use of a while loop.














            You will get the following output:



























                                                                                                   21 st
                                                                                                 Century   #Flexibility
                                                      Self Reflection                              Skills
               A computer program is made up of a set of instructions. It blindly follows all the instructions that are given
                                                      Self Reflection
               to it to perform a set of desired actions. Do you think humans work the same way or do they sometimes
               question the instructions given to them? Elaborate.




                   Hashtag

                 #Indented: The way you follow to organize and document your source code

                 #Iteration: Repetition of an action



                 REVISIT


              ▶   A control structure is a programming language construct which affects the flow of the execution of a
                program.
              ▶   The statements that are executed in sequential order, i.e. one after the other without any jumps, are called
                sequential statements.
              ▶   When programmers are required to execute a particular set of statements depending upon a particular test
                condition, a branching statement is required.





             114  Pro (Ver. 5.0)-VIII
   111   112   113   114   115   116   117   118   119   120   121