Generation

generate functionMon, 31 Jul 2023

Dado un numero invertir los extremos

int invert(int n){ int result = 0; while (n > 0){ result = result * 10 + n % 10; n /= 10; } return result; }

Want to kickstart your project?Use the new AI Studio to create your code