Driver code
public static void Main ( ) { int [ , ] mat = { { 5 , 4 , 7 } , { 1 , 3 , 8 } , { 2 , 9 , 6 } } ; int n = 3 ; Console . WriteLine ( " Original ▁ Matrix : " ) ; printMat ( mat , n ) ; sortMat ( mat , n ) ; Console . WriteLine ( " Matrix ▁ After ▁ Sorting : " ) ; printMat ( mat , n ) ; } }