public static void NhapMang(int[,] Arr)
for(int i = 0; i < Arr.GetLength(0); i++)
for(int j = 0; j < Arr.GetLength(1); j++)
Console.Write("Nhap vao phan tu (" + i + ", " + j + "): ");
Arr[i,j] = Convert.ToInt32(Console.ReadLine());
public static void XuatMang(int[,] Arr)
for(int i = 0; i < Arr.GetLength(0); i++)
for(int j = 0; j < Arr.GetLength(1); j++)
Console.Write(Arr[i,j] + " ");
public static void Main()
int[,] Arr = new int[2, 3];