Function that prints the array
static void printArray ( double [ ] [ ] arr , int n ) { for ( int i = 0 ; i < arr [ 0 ] . length ; i ++ ) { System . out . printf ( " % 5.4f ▁ " , arr [ n ] [ i ] ) ; } }