diff --git a/Algorithms/C++/traverse_array.cpp b/Algorithms/C++/traverse_array.cpp new file mode 100644 index 00000000..09e7f286 --- /dev/null +++ b/Algorithms/C++/traverse_array.cpp @@ -0,0 +1,21 @@ +#include +using namespace std; +int main() +{ +int A[100],K=0,UB; +cout<<"Enter the Array size less than 100:"; +cin>>UB; /* To enter the size of Array */ +cout<<"Enter the elements in array: \n"; +for(K=0;K>A[K]; + /* Entering elments of 1-D Array*/ +} +cout<<"The Traverse of array is:\n"; +for(K=0;K