Its output is:
*
* *
* * *
* * * *
* * * * *
But I want it to be like this:
! ! ! ! ! *
! ! ! ! * *
! ! ! * * *
! ! * * * *
! * * * * *
I will thankfully appreciates your response. :)
This is my first time to post here..haha :) Pls. kindly understand my grammar :)
This is written in C++, but if you just take it to be all the same except printf() is replaced by cout <<... It doesn't use a triangle, but it demonstrates how to space things away from the edge as you asked.