correct output, yet 'wrong answer' display on submission

I have written codes that generate the correct output yet when i submit it, it displays ‘wrong answer’. Why is it happening, where is the glitch and how can I rectify it? Please respond as quickly as possible. Thanks much.

Hi, @atulyaa_ – please post a link to your code and to the original problem description, and we’ll see if we can help you out.

//