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