I want you to write a program that creates a block pyramid. You are expected to take in a single positive integer which will be used as the height of your pyramid, for the purposes of this first lab you can assume that the user will always provide a valid integer greater than 0 and less than 1000 (I.e. re-run the program only when value is out of this range). The very top of your pyramid will have a single block with each level having 1 more block until you have created a pyramid with the correct number of levels. In addition to the before mentioned requirements, a few things to note that might not be as evident from the screenshot:
1. The very bottom left is left aligned (I.e. no spaces)
2. There are no spaces after the right most pyramid in a single level.
3. The bottom most row does not end with a new line.
Looking for solution of this Assignment?
WHY CHOOSE US?
We deliver quality original papers |
Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected |
Free revisions |
We offer our clients multiple free revisions just to ensure you get what you want. |
Discounted prices |
All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount |
100% originality |
We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI |
On-time delivery |
We will deliver your paper on time even on short notice or short deadline, overnight essay or even an urgent essay |