If leading coefficients zero then should be columns or rows are swapped accordingly so that a divison by the leading coefficient is possible. The value of the determinant is correct if, after the transformations the lower triangular matrix is zero, and the elements of the main diagonal are all equal to 1.
Enter the coefficients: a11, a12, ... und b1, ...
Solution with the Gauss algorithm.
The entered matrix is: