Code producing wrong output

heyy, my code is not producing desired output. please check. https://ide.codingblocks.com/s/170557