#include <stdio.h>
#define SIZE 2
int main()
{
int A[SIZE][SIZE];
int row, col;
long det;
printf("Enter elements in matrix of size 2x2: \n");
for(row=0; row<SIZE; row++)
{
for(col=0; col<SIZE; col++)
{
scanf("%d", &A[row][col]);
}
}
det = (A[0][0] * A[1][1]) - (A[0][1] * A[1][0]);
printf("Determinant of matrix A = %ld", det);
return 0;
}
C Programming
Program to find determinant of a matrix.

Written by
View ProfileNikhil Juneja
Passionate software developer and technical contributor at TutorialsLink.
