Page 18 - Looping by Johannes Alexander
P. 18

Java nested loops to




                        create a pattern










                     We  can  use  the  nested  loop  in


                     Java to create patterns like full


                     pyramid, half pyramid, inverted



                     pyramid,  and  so  on.  Here  is  a


                     program  to  create  a  half



                     pyramid  pattern  using  nested


                     loops.
   13   14   15   16   17   18   19   20   21   22   23