#C10598. Palindromic Numbers Finder
Palindromic Numbers Finder
Palindromic Numbers Finder
Given two integers a and b, find all the palindromic numbers in the range \(a \le x \le b\). A palindromic number is a number that reads the same forwards and backwards, i.e., if \(x\) is represented as a string \(s\), then it satisfies \(s = s^R\) where \(s^R\) is the reversal of \(s\).
Your task is to print all such numbers in a single line separated by a space. If there are no palindromic numbers in the given range, output an empty line.
inputFormat
The input consists of a single line containing two space-separated integers a and b (\(a \le b\)).
outputFormat
Output a single line with all palindromic numbers between a and b (inclusive) separated by a single space. If none exist, output an empty line.
## sample10 50
11 22 33 44