C++ Program Matrix Formation by Given Numbers

Displaying Given Numbers in the form of Matrix

#include
#include
void main()
{
int a[3][3],i,j;
clrscr();
cout<<"Enter the elements of matrix:n";
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cin>>a[i][j];
}
}
cout<<"Matrix:n";
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout< }
cout<<"n";
}
getch();
}

Add Comment