using System; public class Test { public static void MultiplyMatrix() { int[,] a = new int[5, 5]; int[,] b = new int[5, 5]; int[,] c = new int[5, 5]; Random ran = new Random(); // Инициализируем данный массив for (int i = 0; i < 4; i++) { for (int j = 0; j < 5; j++) { a[i, j] = ran.Next(1, 15); b[i, j] = ran.Next(1, 15); c[i, j] = ran.Next(1, 15); } Console.WriteLine(); } if (a.GetLength(1) == b.GetLength(0)) { c = new int[a.GetLength(0), b.GetLength(1)]; for (int i = 0; i < c.GetLength(0); i++) { for (int j = 0; j < c.GetLength(1); j++) { c[i, j] = 0; for (int k = 0; k < a.GetLength(1); k++) // OR k