My output is correct still its showing run error https://ide.codingblocks.com/s/149972

my output is correct still its showing run error
https://ide.codingblocks.com/s/149972

Hello @goeljatin95,

I modified your code for run-error.
Reason:
your loop is iterating for n+1 time rather n times.

But, you would still get a wrong wrong error.
Reason:
Your logic is failing for the test cases like:
1
2
9 98
Expected Output:
998
Your Output:
9 98

Hope, this would help.
Give a like if you are satisfied.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.