Please clear my doubt

From 3 days my problem is not resolved
sir please help me by fixing the bug that i am doing in my code

Hi, please share the link to your submission.
Paste it on some online ide (such as ide.codingblocks.com) and share.

So, I retraced your last submission and corrected the code

Compare the differences and try to figure out the reason, else ask me to clarify what you don’t get.