Page

Wednesday, 5 September 2018

program for column matrix in c++

#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 column matrix is:";
for(i=0;i<n;++i)
{
cout<<"\n"<<a[i];
}
getch();
}



No comments:

Post a Comment