Hollow rhombus hackers block

i am not able to pass every testcase on hackers block

https://ide.codingblocks.com/s/98996 - this is the url of the code. please check it.

Hi Ayushi,
Your approach is correct. You just need to work according to the input and output format specified in the question. Take the β€˜rows’ variable as input and do not print the line β€œ\nHollow Rhombus:\n” as it will get you a wrong evaluation. Stick to the specified input-output format in the question and your code will pass with flying colors.

THERE IS JUST β€˜N’ IS SPECIFIED THERE TO BE TAKEN AS INPUT FORMAT AND NOTHING ELSE

https://ide.codingblocks.com/s/99206 - THIS IS THE URL OF THE NEW CODE. I JUST DONT KNOW HOW TO PRINT THE PATTERN RHOMBUS.

Add a cout<<endl statement at the end of the for loop … the outer for loop which uses variable i as its counter.
Take N as input i.e. write it like this in the main( )

int N;
cin >> N ;

And then call the printPattern( N ) function … or you can directly call hollowRhombus( N ) as well since printPattern( ) literally does nothing.

OKH.Yeah thanks the code is done now