Page 1 of 1

FIND ALL PALINDROMIC

Posted: Sat Feb 04, 2012 8:15 pm
by MATHPRITOM
Write down a program that prints all the palindromic number in a certain range.
Example:
Enter a number:100.
The palindromic number upto 100 are 1,2,3,4,5,6,7,8,9,11,22,33,44,55,66,77,88,99.

Re: FIND ALL PALINDROMIC

Posted: Sat Feb 04, 2012 11:33 pm
by novice
From palindromes having 2n-1 digits,we get palindromes of 2n+1 digits by simply by adding the same digit back and front,which in turn can be saved into arrays to find palindromes having 2n+3 digits.
Pretty much the same thing for even digited palindromes.