Problem Description

Print centered pyramid of stars.
Real Life: Classic pyramid shape.

Step-by-Step Logic:
1. Print spaces first for centering
2. Spaces = n - current row
3. Then print stars = 2*row - 1
4. Creates centered pyramid

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next