Write a program to reverse an integer entered by the user. Your program must work for positive as well negative numbers. code example
Example: print reverse number
void printReverse(int n) {
if (n < 1) return;
cout << n << endl;
printReverse(n - 1);
}
printReverse(10); /// 10 9 8 7 6 5 4 3 2 1