using System;
class Program
{
static void Main() {
int[,] array2d = { { 1, 2, 3, 6, 0},
{-5, -4, 0, 7, 9},
{ 1, 7, 100, 14, 6},
{ 9, 10, 11, 12, 13} };
int rows = array2d.GetUpperBound(0) + 1;
int cols = array2d.GetUpperBound(1) + 1;
Console.WriteLine(rows);
Console.WriteLine(cols);
}
}
/*
run:
4
5
*/