here is the link to my code:-
Please check and tell me the mistakes I am doing.
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
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… 
thank you.
Mark the doubt as resolved . Otherwise it will remain pending
already did…