Thursday, May 15, 2014

Pyramid-Builder

Starting the outside loop at row two does the trick for generating a pyramid
with two stars at the top. (And things are shifted to the right because I am running
the spaces first Inside the loop).

As for aligning my stars to the left-most corner, keeping the count to 1 less than the number
of stars  will do it.



For a visual representation, see:

No comments: