Write a program that will calculate the determinant of a 2×2 and a 3×3 matrix.
Write a program that will calculate the determinant of a 2×2 and a 3×3 matrix.
where a,b, c, d, e, f, g, h, and i are real or complex values.
Your program should accept integer values from the user. Your program must allow the user to choose
which determinant to calculate, your program should allow the user to terminate the program when he
chooses to. Your program should include two functions, one for each determinant calculation. You may
use the following function prototypes:
int det_2by2(int mat[ ][ 2], int rows);
int det_3by3(int mat[ ] [3], int rows);