using System;
public class Program
{
public static void Main()
//declare and initialising the 2D array
int [,] matrix = new int [3,4];
//assign values to element in the array
matrix [0,0] = 1;
matrix [1,2] = 42;
//use of loop to interact through 2D array
for(int i =0; i<3; i++)
for(int j =0; j <4; j++)
Console.Write(matrix [i,j] + " " );
}
// Move to the next row after each inner loop completes
Console.WriteLine();