Please tell the code solution

please tell why my code is giving the wrong output


and send the corrected link