Hi guys, I'm trying to create a program that can print a hollow triangle such as
*
* *
*****
and
*
* *
* *
*******
I know there needs to be nested loops, the part I'm having trouble with is the code which will actually produce the pattern of asterisks and spaces. Anyone have any ideas?