#include <stdio.h>
int Det(int V[3][3]){
return (V[0][0]*V[1][1]*V[2][2] + V[0][1]*V[1][2]*V[2][0] + V[0][2]*V[1][0]*V[2][1]) - (V[0][0]*V[1][2]*V[2][1] + V[0][1]*V[1][0]*V[2][2] + V[0][2]*V[1][1]*V[2][0]);
}
int main() {
int V[3][3];
for(int i=0; i<3; i++){
for(int j=0; j<3; j++){
scanf("%d", &V[i][j]);
}
}
printf("%d",Det(V));
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: