This problem is marked as deprecated.
Although this problem remains in the system because of historic reasons, it may have some issues and should not be used anymore.
Deprecation indication: Please use P77686 instead.
Feu una funció que digui si un natural n és capicua o no.
Interfície
C++ | bool es_capicua(int n); |
C | int es_capicua(int n); |
Java | public static boolean esCapicua(int n); |
Python | es_capicua(n) # returns bool |
es_capicua(n: int) -> bool |
Precondició
n és un natural.
Observació Només cal enviar el procediment demanat; el programa principal serà ignorat.
Input/Output