#include<iostream>
using namespace std;
int main()
{
int n,a[50],i;
cout<<"Enter The Size Of Array: \n";
cin>>n;
cout<<"Enter The Element Of Array: \n";
for(i=0;i<n;i++)
{
cin>>a[i];
}
cout<<"Output Of Array: ";
for(i=0;i<n;i++)
{
cout<<a[i]<<" ";
}
return 0;
}
Output:
Enter The Size Of Array:
6
Enter The Element Of Array:
10
20
30
40
50
60
Output Of Array: 10 20 30 40 50 60
need an explanation for this answer? contact us directly to get an explanation for this answer