- Code: Select all
Enter size: 7
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
something like this? is it what you meant?
If yes you have to pass the size of the triangle to your DrawBar and add some spaces at the beginning. If I don't know how many spaces I need I use the simple trick of writing some *'s on a piece of paper and try to find the rule.
EDIT: removed code, do it yourself
