using System;
public class ThreeDimensionalArrayProgram
{
public static void Main()
//three dimensional array
int[,,] array= {
{{12, 2, 8}},
{{14, 5, 2}},
{{3, 26, 9}},
{{4, 11, 2}}
};
//get array lengths
int d1 = array.GetLength(0); // array length at 1st dimension
int d2 = array.GetLength(1); // array length at 2nd dimension
int d3 = array.GetLength(2); // array length at 3rd dimension
for (int i=0; i<d1; i++)
for (int j=0; j<d2; j++)
for (int k=0; k<d3; k++)
Console.WriteLine(" value at position "+i+ " "+j+" "+k+ " ="+array[i, j, k]);
}