Pls telll why my code is not giving correct output

please tell why my code is giving the wrong output