C++ Program on Three Dimentional Array
#include<iostream>
using namespace std;
/*Dimension size is 2 */
#define DSIZE 2
#define ROW 2
#define COL 2
int main()
{
int MDA[DSIZE][ROW][COL];
for(int d=0; d<DSIZE; d++){
cout<<"\n Enter Elements of "<<d+1<<"th 2D Array :";
for(int i=0; i<ROW; i++){
for(int j=0; j>MDA[d][i][j];
}
}
}
for(int d=0; d<DSIZE; d++){
cout<<"\n Elements of "<<d+1<<"th 2D Array : \n";
for(int i=0; i<ROW; i++){
for(int j=0; j<COL; j++){
cout<<MDA[d][i][j]<<" ";
}
cout<<"\n";
}
}
return 0;
}