This may seem to be an easy [question][1] 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


  [1]: http://www.spoj.com/problems/MINNUM/
  [2]: http://ideone.com/R0JlnC

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…:stuck_out_tongue:
Thanks a lot… :slight_smile:

Welcome :slight_smile: