1.1-Introductie-Programmeren

Drawing a full pyramid

Create a program that draws a full pyramid. The pyramid should be adjustable in height but doesn’t need to be entered by the user (it may be hardcoded).

Besides drawing the pyramid, you must resize the screen to perfectly fit the pyramid. This means that you’ll need to calculate the dimensions of the screen and resize the frame accordingly. (Note that you may disregard the bottom “status bar” in your calculations.. if you want to!)

Example

Example