Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+19 votes
asked in CSC211_Winter2018 by (1 point)

1 Answer

+10 votes

Starting from the outer square, the subsequent square should have
A/ x and y coordinates of the outer square plus 20
B/ the size of the outer square minus 40

From that you just have to make it so that as the loop count goes up (or down), the subsequent square's coordination and size change.

answered by (1 point)