answersLogoWhite

0

I guess that would be relevant for reversing a string that represents a number, such as -123.You would first need to check whether the first character is such a sign. If it is, remove it (work only with the remaining string). If you want to keep the sign (convert -123 to -321, for example), set some variable - for example, negative = true (if there is a minus sign), so you can add it back again later.

User Avatar

Wiki User

9y ago

What else can I help you with?