why I am getting wrong answer on submission. The code is giving correct output.
What is the problem in this code?
Your logic seems correct. Just put an endl in line 34 after “No” and then check.
why I am getting wrong answer on submission. The code is giving correct output.
Your logic seems correct. Just put an endl in line 34 after “No” and then check.