You are viewing a single comment's thread. Return to all comments →
Don't use a string to manipulate the data. Use the % and / operators to reverse the input.
Also you don't need to use the absolute value function when checking the difference's equality to 0 since 0 does not have a sign.
Thanks a lot, it's working now. :)