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.

Categories

+21 votes

I am doing the Christmas Tree and I have an issue. How do we put the variable for the number of concentric squares? Happy holiday everyone.

asked in CSC211_Winter2018 by (1 point)

2 Answers

+13 votes

I think you can put the number of concentric squares in the Parameters in all three methods. Moreover, you can put that number to the for loop to create concentric squares. Happy holiday.

answered by (1 point)
+12 votes

If you notice in the main method, the last number in drawOneTree(....) is the number of the concentric squares. So when you do the method later, just declare it like usual.

answered by (1 point)
...