0
How to get a palindrome number?
Two 3 digit numbers are multiplied together..if the product's first number==to its last number,its a palindrome,how can i do it?
2 Réponses
+ 1
couldn't be simpler.
hundreds of code samples for palindromic numbers are available on the Internet
Still:
what is your problem:
1. algorithm
2. code in c++
be VERY precise in defining what you really need.
your definition of the palindromic number is wrong.
there's a difference between a number and a digit
+ 2
It is more than first/last number. It is the first half of the number is equal to the reverse of the second half so convert to digits or string and reverse it back into a number. If the result is your original number, it is a palindrome.