Please resolve my query


please tell why my code* is giving the wrong anwer

I have edited your code… Try to submit it now…