+ 1

Want logic for palindrome

logic for finding whether the string is palindrome or not

15th Oct 2017, 5:32 AM
swagat
swagat - avatar
3 Answers
15th Oct 2017, 5:57 AM
Nanda Balakrishnan
+ 2
hi swagat, Ā examples are 121, 212, 12321, -454. To check whether anumberĀ isĀ palindromeĀ or not first we reverse it and then compare the numberĀ obtained with the original, if both are same thenĀ numberĀ is palindromeĀ otherwise not a palindrome
15th Oct 2017, 5:53 AM
Nanda Balakrishnan
+ 2
thanks
15th Oct 2017, 5:55 AM
swagat
swagat - avatar