how to print a matrix in csharp

Code Example - how to print a matrix in csharp

                
                        using System.Linq;
 int[,] array2D = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
Console.WriteLine(array2D.Cast<int>());