Illustration Credit | |
Illustration Credit | Assignment: First of all, you should understand that you will need to use several variables to complete this assignment. In the example, the code which creates the hourglass presented above, three variables were used. Variable x controlled the x-coordinate of the start of each line. Variable y controlled the y-coordinate of the start of each line. Variable l controlled the length of each line. Your job will be to create the pyramid shown to the left. |