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
publicstaticbooleanesCapicua(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.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.