Function that takes the user's input for a matrix and then displays the matrix rowwise, calculating and displaying the determinant at the end
This is the input:
Enter the number of rows you want: 3
Enter the number of columns you want: 3
Enter the number of entries here row-wise; entries wrap to the next row after the row is filled:
2
3
4
1
-3
3
4
2
1
And this is the resulting output:
2 3 4
1 -3 3
4 2 1
The Determinant of the matrix is: 71