Hollow pattern for given input this is for input N=5 .Please use only loops to explain

Hollow Diamond pattern

https://ide.codingblocks.com/s/628082 refer my code…
try to dry run on sample input… u will get better insight…

sir of hollow diamomd pattern below is reference
[https://discuss.codingblocks.com/uploads/default/original/2X/c/ccd192a0e5de83e50d202c21824745cc63aa89a5.png

https://ide.codingblocks.com/s/628082 I have made changes in code… it is now giving the desired output…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.