Below is my attempt to write a program which calculates the determinant and the inverse of a nxn matrix. The program returns a valid inverse matrix when 1<=n<=3. Howev