Pattern of stars and number

hello, can you please check my code

https://ide.codingblocks.com/s/103549 - this is the url of my code

https://hack.codingblocks.com/contests/c/917/625 - and this is the url of the question in case.

@Ayushi21
Your implementation is absolutely correct. Just need to adjust your code according to the specified output format.
Comment out Line no 6. You don’t need to print a space at the beginning.
Also add a space after printing β€˜*’ in Line No. 18 and Line No. 21.