using System;
class Program
{
static void Main()
{
Random rnd = new Random();
Console.Write("Строк: ");
int rows = Convert.ToInt32(Console.ReadLine());
Console.Write("Столбцов: ");
int cols = Convert.ToInt32(Console.ReadLine());
Console.Write("Число X: ");
int x = Convert.ToInt32(Console.ReadLine());
string[] vector = new string[rows];
for (int i = 0; i < rows; i++)
{
int sum = 0;
for (int j = 0; j < cols; j++)
{
int value = rnd.Next(1, 10);
Console.Write(value + " ");
sum += value;
}
if (sum > x)
vector[i] = "TRUE";
else
vector[i] = "FALSE";
Console.WriteLine("| сумма = " + sum);
}
Console.WriteLine("\nВектор:");
for (int i = 0; i < rows; i++)
Console.WriteLine(vector[i]);
}
}