I have a 2D array as follows:
long[,] arr = new long[4, 4] {{ 0, 0, 0, 0 }, { 1, 1, 1, 1 }, { 0,
Your can do it like this in short hands.
int[,] values=new int[2,3]{{2,4,5},{4,5,2}}; for (int i = 0; i < values.GetLength(0); i++) { for (int k = 0; k < values.GetLength(1); k++) { Console.Write(values[i,k]); } Console.WriteLine(); }