Palindromic numbers

Write a function that tells whether the natural number @n@ is a
palindromic number or not.

Interface

+-------:+:------------------------------------------------+
| C++    |     bool is_palindromic(int n);                 |
+--------+-------------------------------------------------+
| C      |     int is_palindromic(int n);                  |
+--------+-------------------------------------------------+
| Java   |     public static boolean isPalindromic(int n); |
+--------+-------------------------------------------------+
| Python |     is_palindromic(n)  # returns bool           |
+--------+-------------------------------------------------+
|        |     is_palindromic(n: int) -> bool              |
+--------+-------------------------------------------------+

Precondition

@n@ is a natural number.

Observation

You only need to submit the required procedure; your main program will
be ignored.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:56:51.082Z

© Jutge.org, 2006–2026.
https://jutge.org
