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