// Wyo C++ Ch. 14 Demo #7 // purpose - determine the digits of a 4-digit integer #include <iostream.h>#include "M:\C++ Programming\AP classes\apvector.h" int main() { apvector <int> digits(4, 0); int num = 0; int position = 0; cout << "Enter a number: "; cin >> num; do { digits[position] = num % 10; cout << "The next digit is " << digits[position] << endl; num = num / 10; position++; }while (num > 0); return 0; }// end of main // modify this program to detect palindrome numbers of any length (i.e. any number of digits)