public static void Main()
Console.Write("Въведете брой редове на матрицата: m= ");
int m = int.Parse(Console.ReadLine());
Console.Write("Въведете брой стълбове на матрицата: n= ");
int n = int.Parse(Console.ReadLine());
int[, ] matrix = new int[m, n];
Console.WriteLine("Въведете елементите на матрицата - цели числа в интервала [10;99]:");
for (int row = 0; row < m; row++)
for (int col = 0; col < n; col++)
Console.Write("матрица[{0},{1}] = ", row, col);
matrix[row, col] = int.Parse(Console.ReadLine());
while (matrix[row, col] < 10 || matrix[row, col] > 99)
Console.Write("Не е в интервала:");
matrix[row, col] = int.Parse(Console.ReadLine());
Console.WriteLine("Въведохте следната матрица:");
for (int row = 0; row < matrix.GetLength(0); row++)
for (int col = 0; col < matrix.GetLength(1); col++)
Console.Write(" " + matrix[row, col]);
Console.WriteLine("Транспонираната матрица е:");
for (int row = 0; row < matrix.GetLength(1); row++)
for (int col = 0; col < matrix.GetLength(0); col++)
Console.Write(" " + matrix[col, row]);
for (int i = 0; i < matrix.GetLength(0); i++)
for (int j = 0; j < matrix.GetLength(1); j++)
Console.WriteLine("Минималният елемент е " + min);
Console.WriteLine("Максималният елемент е " + max);