Pattern Inverted hour glass

Can you pls tell the error in my code as it is showing correct output on ide but not on this online editor

@paras.bisht please share your code

https://ide.codingblocks.com/s/268361 here is the link to my code.

@paras.bisht the number of spaces being printed in middle is incorrect, match them with the sample output and then think of the condition

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.