Hollow diamond pattern code


what is wrong with this code ? pls help

hey @chahatkumar, you have lot of extra space and your logic is not correct. I suggest you to go through this code and after write your own. https://ide.codingblocks.com/s/16481