Page 12 - control flow
P. 12

 Kompilasi Loop For





         Versi Goto

































                  Init                          Tes

                                                                                         Body

           result = 1                        p != 0
                                                                             {

                                                                                  if (p & 0x1)

                                                                                      result *=

                                                                                      x;
                           Update

                       p = p >> 1                                                 x = x*x;

                                                                             }
   7   8   9   10   11   12   13   14