using System;
public class Program
{
public static void Main()
{
const int N = 5;
const int M = 7;
int[,] A = new int[N, M];
int min = A[0, 0], strIndex = 0;
Console.WriteLine("Matrix: ");
Random random = new Random();
for (int i = 0; i < N; i++)
{
for (int j = 0; j < M; j++)
{
A[i, j] = random.Next(-10, 10);
Console.Write(A[i, j] + "\t");
}
Console.WriteLine();
}
for (int i = 0; i < N; i++)
{
if (A[i, 0] < min)
{
min = A[i, 0];
strIndex = i;
}
}
Console.WriteLine("min: " + min);
Console.WriteLine("strIndex: " + strIndex);
}
}