Thursday 17 January 2013

2d Array program

| |


#include<iostream>

using namespace std;
int main()
{
    int array[3][3], a ,b,x,y;
    cout<<"Enter the no. for the 2D arrays seperated by space :\n";
    for(int n=0; n<3; n++)
    {
            for (int i=0;i<3;i++)
    {cin>>array[n][i]  ;
  }}
   
    for(int n=0; n<3; n++)
    {cout<<"\n";
            for (int i=0;i<3;i++)
            {
                cout<<array[n][i];
                }}
   
system ("pause");
return 0;
}


2d Array program


Related Posts Plugin for WordPress, Blogger...
Powered by Blogger.