using System;
//csc array_2d.cs
namespace aray_twoD
{
class process
{
public static void a2d(string[,] array)
{
for (int row = 0; row < array.GetLength(0); row++)
{
for (int col = 0; col < array.GetLength(1); col++)
Console.Write("{0} ",array[row,col]);
Console.WriteLine();
}
}
}
public class Pass2Darray
{
public static void Main()
{
string[,] str = { { "a", "b", "c", "d" },
{ "5","6","7","8" }
};

// Display the contents of the array.
Console.WriteLine("--Two Dimensional array.");
process.a2d(str);
Console.ReadLine();
}
}
}