public static int InvertirNumero(int num) {
if (num < 10) {
return num;
} else {
return (num % 10) + InvertirNumero(num / 10);
}