Matrices c cod

 3,3,3 Box











#include <stdio.h>


int main(){

    

   int a[3][3][3];

   int i,j,k;

   int n = 1;

   

   for(i=0;i<3;i++){

       for(j=0;j<3;j++){

           for(i=0;k<3;k++){

           a[i][j][k] = n;

           n++;

           

    

       }

       

   }

   

   

   }

   

   for(i=0;i<3;i++){

       for(j=0;j<3;j++){

           for(i=0;k<3;k++){

               

               printf(" %d ", a[i][j][k]);

               }

               }

           }

           }

           

           










Comments