public static void Main()
int[,] arr1 = new int[3,3];
Console.Write("\n\nRead a 2D array of size 3x3 and print the matrix :\n");
Console.Write("-----------------------------------------------------\n");
Console.Write("Input elements in the matrix : \n");
Console.Write("element - [{0},{1}] : ",i,j);
arr1[i,j] = Convert.ToInt32(Console.ReadLine());
Console.Write("\nthe matrix is : \n");
Console.Write("{0}\t",arr1[i,j]);