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 . length ; int M = mat [ 0 ] . length ; ConstMatrix ( mat , N , M , A , B ) ; } }