Page 4 - Looping by Johannes Alexander
P. 4

Loops                                                                                                       Two types of loops in computer programming:















                                    With a loop, a part of a                                                                                                 You know exactly how many times you

                                                                                                                                                             have to repeat

                               program is repeated over                                                                                                      You know the specific condition when to



                                  and over,until a specific                                                                                                  stop the repetition, but you do not know




                                              goal is reached.                                                                                               how many times to repeat the action to



                                                                                                                                                             achieve that particular condition
   1   2   3   4   5   6   7   8   9