Driver code
public static void Main ( String [ ] args ) { int [ , ] mat = { { 1 , 2 } , { 2 , 3 } } ; int N = mat . GetLength ( 0 ) ; int M = 2 ; Console . WriteLine ( findMedXOR ( mat , N , M ) ) ; } }