Welcome to the CSC Q&A.
Get help and give help!
Write great code!
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 (8 points)

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 (8 points)
+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 (8 points)
...