using System;
public class PrintSpecificColumnOfMatrix_CSharp
{
public static void printColumnOfMatrix(int[,] matrix, int col) {
int rows = matrix.GetLength(0);
for (int i = 0; i < rows; i++) {
Console.Write(matrix[i, col] + " ");
}
}
public static void Main(string[] args)
{
int[,] matrix = new int[,]
{
{3, 2, 5, 1},
{4, 7, 6, 5},
{9, 3, 0, 1}
};
printColumnOfMatrix(matrix, 1);
}
}
/*
run:
2 7 3
*/