Hollow rhombus pattern

question link
https://online.codingblocks.com/player/11915/content/4696?s=1493
my code link
ide.codingblocks.com/s/42276
what’s the problem with my code

Hey! your approach for this problem is not correct, you should use a loop for the no. of rows and then for each row you should use loop for spaces and stars to printed in that row. if you are still unable to figure out the right approach here is my code you can refer this.

Hope this helps you :slight_smile: