-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3Darray.c
More file actions
33 lines (31 loc) · 680 Bytes
/
Copy path3Darray.c
File metadata and controls
33 lines (31 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include<stdio.h>
int main(){
// int B[2][2][2]={0};//{{{'9'}}};
int B[3][3][3]={0};
int i,j,k;
// for(i=0;i<2;i++)
// {
// for(j=0;j<2;j++)
// {
// for(k=0;k<2;k++)
// {
// printf("%d ",B[i][j][k]);
// }printf("\n");
// }
// }
// int x=0,y=1,z=0;
// B[x][y][z]+=1;
// printf("%d \n",B[x][y][z]);
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
for(k=0;k<3;k++)
{
//printf("%d ",B[i][j][k]);
printf("%d %d %d \n",i,j,k);
}printf("\n");
}printf("\n");
}printf("\n");
return 0;
}