A palindrome number is a number that remains the same when its digits are reversed. Example: 16461.
Given a range from start to end, we have to check and print all palindromes numbers between start and end (includes start and end).
Example:
Input:
start = 1
end = 100
Output:
[1, 2, 3, 4, 5, 6, 7, 8, 9, 11,
22, 33, 44, 55, 66, 77, 88, 99]
Program to print all palindromes in a given range in Kotlin
Output
need an explanation for this answer? contact us directly to get an explanation for this answer