Counting sort problem

https://ide.codingblocks.com/s/182336 whats wrong in this code

Repeated occurance of digits are not being printed

for eg
for i/p
8
1 3 1 6 15 1 7 7

the o/p need to be 1 1 1 2 6 7 7 15
but ur code is not performing correctly.

I have updated the code for u

mam my code is absolutely right the only thing that is wrong is i printed the value in continuation i.e. without blank space in between them is is working fine after adding them thanks for help

okay thanks for pointing out.
Good luck