My code is producing correct output but still not passing the test cases

here is the link to my code:-

Please check and tell me the mistakes I am doing.

@Jitinkansal Haha , you were doing just a tiny mistake otherwise the code is correct .
You forgot to add a cout << endl; for every test case so if there are more than one test case the output was not printing properly .
Hope it helps :slight_smile: if your doubt is now resolved mark your doubt as resolved and rate me accordingly .
If not , reply here what the problem is . Thankyou .

yaa… :man_facepalming:
thank you.

Mark the doubt as resolved . Otherwise it will remain pending

already did…

1 Like