using System;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
int[,] matrix = new int[3, 5] { { 12, 43, 65, 10, 12 },
{ 33, 42, 98, 80, 50 },
{ 88, 77, 99, 100, 9843 } };
Console.WriteLine("rows: {0}", matrix.GetLength(0));
Console.WriteLine("cols: {0}", matrix.GetLength(1));
}
}
}
/*
run:
rows: 3
cols: 5
*/