Prateek sir and coding wrong output

I HAVE SOLVED IT , THANKS
codelink- https://ide.codingblocks.com/s/111295