#include<iostream>
using namespace std;
int main()
{
int n;
int array[20];
cout<<"Enter no of Element to enter:";
cin>>n;
cout<<"Enetr Array Elements:"<<endl;
for(int i=0;i<n;++i) //loop for enter the element in array.
{
cin>>array[i];
}
cout<<"Elements are:"<<endl;
for(int i=0;i<n;++i) //loop for display element.
{
cout<<array[i]<<endl;
}
}
using namespace std;
int main()
{
int n;
int array[20];
cout<<"Enter no of Element to enter:";
cin>>n;
cout<<"Enetr Array Elements:"<<endl;
for(int i=0;i<n;++i) //loop for enter the element in array.
{
cin>>array[i];
}
cout<<"Elements are:"<<endl;
for(int i=0;i<n;++i) //loop for display element.
{
cout<<array[i]<<endl;
}
}