I am not getting the desired answer

i am getting wrong ans pls help .here is the code https://ide.codingblocks.com/s/194361