Mirror star pattern hb

http://ide.codingblocks.com/#/s/16704
https://hack.codingblocks.com/contests/c/474/168

You didn’t understand the question properly.
Here n is the total number of rows. As for n=5, total rows printed should be 5, but in your code it prints 9 rows for n=5.
And also the stars have to be separated by a tab in the output as mentioned in the question.

I know.
How to correct it?