Write a C program to read elements in a matrix and find determinant of the given matrix. C program to find determinant of a 2×2 matrix and 3×3 matrix. Logic to find determinant of a matrix in C programming.
Example
Input
Input elements in 2x2 matrix: 1 2 3 4
Output
Determinant of the matrix = -2