Menu
Coddy logo textTech

Small Large Palindrome

Lesson 15 of 25 in Coddy's Coding Problems: Volume 2 course.

Your task is for a given range of numbers to find the smallest and the largest palindrome in between, if there isn't any, output No palindromes found.
Note: A palindrome is a number that reads the same way from the front and backward, 12321, 1551

challenge icon

Challenge

Medium

On input, you'll be given 2 natural numbers, find the smallest and the largest palindrome in that range of numbers and output them

Input
10 37

Output
Smallest: 11
Largest: 33

Try it yourself

#include <stdio.h>

int main() {
    // Write code here
    return 0;
}

All lessons in Coding Problems: Volume 2