hi, this is a code to print a pine tree. It just prints one big tier for any number. It works ok for one tier. But how do I make look like this one? * *** * *** ***** * *** ***** ******* | -----+-----
For example, if you input 3 you get 3 tiers in the tree. Base of tree is always 4 dashes wider then the bottom tier of the tree.
This is what I have so far:
justin marshall
Greenhorn
Joined: Oct 08, 2003
Posts: 5
posted
0
sorry but the pine tree got messed up. anyway...how do I make look like this one?
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
This seems to work OK, but there's probably simpler ways