Bbchjj, using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp8 { class Program { static void Main(string[] args) { Random rand = new Random(); int[,] arr = new int[2, 3]; for(int i=0;i<2;i++)//генерация массива { for(int j=0;j<3;j++) { arr[i, j] = rand.Next(); } } int sum = 0; int comb = 1; for (int i = 0; i < 2; i++)//поиск суммы { for (int j = 0; j < 3; j++) { sum += arr[i, j]; } } for (int i = 0; i < 2; i++)//поиск произведения { for (int j = 0; j < 3; j++) { comb *= arr[i, j]; } } Console.WriteLine($"Сумма {sum}"); Console.WriteLine($"Произведение {comb}"); Console.ReadLine(); } } } Code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp8 { class Program { static void Main(string[] args) { Random rand = new Random(); int[,] arr = new int[2, 3]; for(int i=0;i<2;i++)//генерация массива { for(int j=0;j<3;j++) { arr[i, j] = rand.Next(); } } int sum = 0; int comb = 1; for (int i = 0; i < 2; i++)//поиск суммы { for (int j = 0; j < 3; j++) { sum += arr[i, j]; } } for (int i = 0; i < 2; i++)//поиск произведения { for (int j = 0; j < 3; j++) { comb *= arr[i, j]; } } Console.WriteLine($"Сумма {sum}"); Console.WriteLine($"Произведение {comb}"); Console.ReadLine(); } } }