Puzzle L35


Puzzle A35 — Centered Pyramid

[E-7]Modify the previous program so that it prints a centered pyramid:

    *
   ***
   ***
  *****
  *****
  *****
 *******
 *******
 *******
 *******
*********
*********
*********
*********
*********

Use the function center() from the second puzzle. You will need to modify pyramid() and starBlock().



Previous Page        Answer         Next Page         Home