Wednesday, 25 May 2016

Two Dimensional Array C++ Program


If AnyOne Have Question Comment It.......









#include<iostream>
using namespace std;
int main()
{
int a[3][4];
 for(int i=0; i<3; i++)
 {
 for(int j=0; j<3; j++)
 {
 cout<<"enter Value a["<<i<<"]["<<j<<"] ="; cin>>a[i][j];
 }
 }
 for(int i=0; i<3; i++)
 {
 for(int j=0; j<3; j++)
 
 cout<<"enter Value a["<<i<<"]["<<j<<"] ="<<a[i][j]<<endl;
 }
 }
}

No comments: