Count of palindrome numbers in the range [a,b]

97 Views Asked by At

Can we find the count of palindrome numbers in the range [a,b] by directly using a formula.

for eg in range [8,12] there are 3 palindrome numbers (8, 9, 11)