Print all numbers that are palindromes between 1–500.
Difficulty: Medium
Phase: 6 · Mixed Logical Challenges
XP Reward: 20 XP
Topics: Mixed Logical Challenges, Medium
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Print all numbers between 1 and 100 that are palindromes, separated by space. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input:
Output: 1 2 3 4 5 6 7 8 9 11 22 33 44 55 66 77 88 99
Explanation: Sample execution for input (no input)