Display the matrix
document . write ( " " ) ; for ( row_index = 0 ; row_index < size ; row_index ++ ) { for ( column_index = 0 ; column_index < size ; column_index ++ ) { document . write ( " " , matrix [ row_index ] [ column_index ] ) ; } document . write ( " " ) ; }