using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
Console.Write("Въведи брой редове: ");
int a = int.Parse(Console.ReadLine());
Console.Write("Въведи брой колони: ");
int b = int.Parse(Console.ReadLine());
int[,] arr = new int[a, b];
Console.WriteLine("Попълни матрицата: ");
for (int rows = 0; rows < a; rows++)
for (int cols = 0; cols < b; cols++)
Console.Write("елемент[" + rows + ", " + cols + "]= ");
arr[rows, cols] = int.Parse(Console.ReadLine());
for (int rows = 0; rows < a; rows++)
for (int cols = 0; cols < b; cols++)
Console.Write("{0, 8}", arr[rows, cols]);
Console.WriteLine("Меналите елементи по колони са: ");
for (int cols = 0; cols < b; cols++)
int colMin = arr[0, cols];
for (int rows = 0; rows < a; rows++)
if (colMin > arr[rows, cols])
colMin = arr[rows, cols];
Console.WriteLine("{0, 8}", colMin);