// C# program to demonstrate
// Array.GetValue(Int32, Int32, Int32)
// and array.GetValue(Int64, Int64, Int64)
// method
using System;
public class GFG {
public static void Main()
{
// declare a character
// array of size 2x2x3
// 2 row and 3 column
// number of array is 2
string[,, ] arr = new string[2, 2, 3];
// use "SetValue()" method to set
// the value at specified index
arr.SetValue("C++", 0, 0, 0);
arr.SetValue("Java", 0, 0, 1);
arr.SetValue("C#", 0, 0, 2);
arr.SetValue("Perl", 0, 1, 0);
arr.SetValue("Python", 0, 1, 1);
arr.SetValue("PHP", 0, 1, 2);
arr.SetValue("GO", 1, 0, 0);
arr.SetValue("Ruby", 1, 0, 1);
arr.SetValue("F#", 1, 0, 2);
arr.SetValue("JavaScript", 1, 1, 0);
arr.SetValue("SQL", 1, 1, 1);
arr.SetValue("kotlin", 1, 1, 2);
// using GetValue(Int32, Int32, Int32) and
// GetValue(Int64, Int64, Int64) method
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 2; j++) {
for (int k = 0; k < 3; k++) {
Console.WriteLine("element at index [{0}, {1}, {2}] is : {3}",
i, j, k, arr.GetValue(i, j, k));
}
}
}
}
}