using System;
public static class Program
{
public static void Main()
{
int[,] arr2d = new int[,] {
{0, 1, 2, 3},
{4, 5, 6, 7},
{8, 9, 10, 11}
};
int rows = arr2d.GetLength(0);
int cols = arr2d.GetLength(1);
for (int i = 0; i < rows; i++) {
for (int j = 0; j < cols; j++)
Console.Write("{0} ", arr2d[i, j]);
Console.WriteLine();
}
}
}
/*
run:
0 1 2 3
4 5 6 7
8 9 10 11
*/