Write a C++ program reads 10 numbers from the user and storesthem in the array value onlywhen any number is in the closed interval [0,99].Then the program must copy any value that is composed of thesame digit from values [ ] to a new array sameDigit[ ]. Finally,the program must display both arrays to the screen.
Expert Answer
Answer to Write a C++ program reads 10 numbers from the user and stores them in the array value onlywhen any number is in the clos…