using System;
using System.Linq;
public class Test
{
public static void Main()
{
int[,] numbers = new int[3, 2] { { 2, 1 }, { 3, 4 }, { 6, 5 } };
var all = numbers.Cast<int>();
foreach(int i in all)
Console.WriteLine(i);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgIGludFssXSBudW1iZXJzID0gbmV3IGludFszLCAyXSB7IHsgMiwgMSB9LCB7IDMsIDQgfSwgeyA2LCA1IH0gfTsKICAgICAgICB2YXIgYWxsID0gbnVtYmVycy5DYXN0PGludD4oKTsKCiAgICAgICAgZm9yZWFjaChpbnQgaSBpbiBhbGwpCiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKGkpOwoJfQp9