In this program, you need to make an upside-down tree that contains stars *. After all, in computer science, trees have the root at the top and leaves at the bottom!
Your output should look like:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Modify the makeATree method in the starter code to create this!
Hint: You will need to create a variable that controls how far the * is from edge of the console. That variable should change size each iteration through the outer loop!



Answer :

Other Questions