using System;
public class Program
{
public static void Main()
var a = new int[,]{{1,2},{3,4}};
foreach (var el in a)
Console.WriteLine(el);
}