Indigeneous pre-program 2023 Exercises (Day 2)

Exercise 8:

Write a program to create the picture below.

You can use two different methods. In the first method, you can draw a series of squares. However, a disadvantage of the first method is that you will be drawing the same line twice, e.g. the line connecting (2,0) and (2,2). For the second method, you want to produce the same shape but without drawing any line more than once.

Exercise 9:

Write a program to create the picture below.