Could anyone please help me with a code that could reverse a variable?
For instance how do I get:
A = Hello World
To equal this:
B = dlroW olleH
For the Program I'm writing, I need to be able to check for Palindromes. (i.e. ABBA, DAD, MOM, 12233221, ect.) The only way I can figure to do this is to divide the variable in half, reverse the second half and check to see if the first half and second half are equal. I've figured out most of the code, but I cannot figure out how to reverse the second half of the variable. Any Help would be appreciated.
j0ker
For instance how do I get:
A = Hello World
To equal this:
B = dlroW olleH
For the Program I'm writing, I need to be able to check for Palindromes. (i.e. ABBA, DAD, MOM, 12233221, ect.) The only way I can figure to do this is to divide the variable in half, reverse the second half and check to see if the first half and second half are equal. I've figured out most of the code, but I cannot figure out how to reverse the second half of the variable. Any Help would be appreciated.
j0ker