Dec-13-2018, 02:11 AM
You need two nested loops. Each tree is made of a number of trapezoids equal to it's size. Each trapezoid has four rows. That should tell you what the two loops you need are. The number of *'s at any level is a function of the sum of the two looping variables. Remember to center based on the largest number of *'s you will get.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures