3D array

Suman Barik
0

#include <bits/stdc++.h>


using namespace std;


int main() {


  int math[2][2][2] = {

  

  {{23,45},{32,43}},

  

  {{21,81},{54,20}}

  

  };

  

  for(int i = 0; i < 2; i++){

  

    for(int j = 0; j < 2; j++){

    

      for(int k = 0; k < 2; k++){

      

        cout << math[i][j][k] << endl << endl;

        

      }

      

    }

    

  }

  

  return 0;

  

}

Tags

Post a Comment

0Comments
Post a Comment (0)