Pattern invertedhourglass

this is my code https://ide.codingblocks.com/s/145564 , i have checked it for all the test case , the input and output are same as mine but your platform is giving wrong answer for all the test cases , is there any problem with the platform , please let me know problem in my code if any.

Hi @diwakargour121,
You need to print a space (" ") after every number you print.


I have updated the code and commented the errors.