C++ Program to print numbers in array

OUTPUT