Output wrong due to spacing

the output of the code is not coming correct after n=10 due to spacing. How to correct this error. Please help.

please share your code after saving it on ide.codingblocks.com