// C# Program to illustrate concept
// of Wiring
using System;
using System.Collections.Generic;
class Gfg
{
public static void Main(string[] args)
{
// Declaration of 3-Dimenssional array in the form
// of wiring
int[,,] Arr = {
{ { 9, 8, 7, 5 },{ 4, 5, 6, 8 },{ 7, 8, 9, 1 },{ 5, 4, 7, 9 } },
{ { 20, 19, 30, 31 },{ 40, 50, 60, 20 }, { 70, 80, 90, 50 },{ 20, 30, 40, 50 } },
{ { 10, 11, 12, 13 },{ 14, 15, 16, 28 },{ 50, 17, 18, 19 },{ 90, 80, 70, 50 } },
{ { 20, 21, 22, 23 },{ 54, 24, 25, 26 },{ 38, 27, 28, 29 },{ 20, 54, 78, 88 } },
};
int m=Arr.GetLength(0);
int n=Arr.GetLength(1);
int o=Arr.GetLength(2);
int i=0,j=0,k=0;
// printing all elements
// in the form of matrix
for ( i = 0; i < m; i++)
{
for ( j = 0; j < n; j++)
{
for ( k = 0; k < o; k++)
{
// printing all elements
// in the form of matrix
Console.Write(Arr[i,j,k]+" ");
}
Console.Write("\n");
}
Console.Write("\n");
}
}
}
// This code is contributed by imruhrbf8.