This may seem to be an easy [question] though, but I am repeatedly getting WA and unable to figure out the test cases. Have tried many possibilities, couldn’t get the one desired. My
In line number 62 you are wrongly updating carry it should be carry= (sum+carry)/10; instead of carry= sum/10;
Hope It Helps!!!
A silly mistake once again, I sometimes wonder why such happens…
Thanks a lot…