CSC170: Introductory Computer Programming

Lab 14


Nested loops

  1. Using two nested for loops to generate the following shape.
    *****
     *****
      *****
       *****
        *****
    
  2. Do Exercise 15.10.12 (Page 317)