One test is not working .
Ultra-Fast-Mathematicians
Hi @prashant7122
Your code is failing one test case because for every test case you have to print result in separate line, but in your code all the results are printed in same line. You just have to add cout<<endl; at the end of while loop of test cases.
Here is your corrected code :
If your doubt is clear then mark it as resolved.
1 Like