Write a program in C++ to Reverse an Integer Number that will only contain the even digits. Sample output: Enter an Integer Number: 123456 Reverse of the Even Digit Integer: 642 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