| CodeRams Practice Problem Archive |
|---|
| Finished |
Much like the previous question, you are going to be making some ASCII art. In this question your job is to make a pyramid given a number that represents the base of the pyramid. Each layer going up from the base should be 2 less in length than the previous layer. The pyramid is complete when the length of the top layer is either 1 or 2.
A single number representing the base of the pyramid.
Print the pyramid using "X"'s
7
X XXX XXXXX XXXXXXX
Don't forget to add spacing on the left side so that it doesn't end up looking like a right triangle.
| Name |
|---|


