static void Main(string[] args)
Console.WriteLine("Въведете броя на редовете");
int rows = int.Parse(Console.ReadLine());
Console.WriteLine("Въведете броя на колоните");
int cols = int.Parse(Console.ReadLine());
int[,] matrix = new int[rows, cols];
for (int row = 0; row < rows; row++)
for (int col = 0; col < cols; col++)
Console.Write($"matrix[{row},{col}] = ");
matrix[row, col] = int.Parse(Console.ReadLine());
for (int row = 0; row < rows; row++)
for (int col = 0; col < cols; col++)
Console.Write(matrix[row, col] + " ");