using System; public class Test { public static void Main() { int[, ,] x = new int[,,]{ {{ 3, 4, 5 }, { 3, 5, 6 }, { 5, 4, 3 }} }; int det_of_x = 1; foreach (var i in x) { det_of_x *= i; } Console.WriteLine(det_of_x); } }