Driver Code
public static void Main ( String [ ] args ) { int [ , ] mat = { { 1 , 2 , 3 , 4 , 5 , 6 } } ; int A = 2 ; int B = 3 ; int N = mat . GetLength ( 0 ) ; int M = mat . GetLength ( 1 ) ; ConstMatrix ( mat , N , M , A , B ) ; } }