insertion of Multidimensional array


Program for the insertion of Multidimensional Array

 

 

#include<iostream>

#include<conio.h> 

int main()

{

int Info[6][6];

int j,k,m,n;

cout<<"Enter the order of Array: ";

cin>>m>>n;

cout<<"Insert the elements: "<<endl;

for(j=0;j<m;j++)

{  

for(k=0;k<n;k++)

{

cin>>Info[j][k];

}

}

std::cout<<" Array: "<<endl;

for(j=0;j<m;j++)

{  

for(k=0;k<n;k++)

{

cout<<Info[j][k]<<"\t";

}

cout<<endl;

}

getch();

return 0;

}

1 comment :

  1. hello sateesh your blog is very good for those who are new to c++.

    ReplyDelete