#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a[100],i,n;
cout<<"How many elements in the array:";
cin>>n;
cout<<"Enter the elements";
for(i=0;i<n;i++)
{
cin>>a[i];
}
cout<<"\n Row matrix is:";
for(i=0;i<n;i++)
{
cout<<"\t"<<a[i];
}
getch();
}
No comments:
Post a Comment