using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[,] a = new int[3, 3] { { 1, 8, 5 }, { 6, 7, 1 }, { 8, 7, 6 } };
Print(a);
}
static void Print(int[,] arr2d)
{
for (int i = 0; i < arr2d.GetLength(0); i++)
{
for (int j = 0; j < arr2d.GetLength(1); j++)
Console.Write("{0, 4}", arr2d[i, j]);
Console.WriteLine();
}
}
}
}
/*
run:
1 8 5
6 7 1
8 7 6
*/