Copero
Public Snippets
Open Source
lYVyVX
Copy Content
#include <iostream> using namespace std; int main() { int input, result, remainder; cout << "Ingresa un numero: "; cin >> input; result = 0; do { remainder = input%10; result = (result+remainder)*10; input = input/10; }while(input>=10); result = result +input; cout << "El numero invertido es: " <<result << endl; }
Copy Shareable Link