Write a program that will calculate the determinant of a 2x2 and a 3x3 matrix.

profileanimegangstress

Write a program that will calculate the determinant of a 2x2 and a 3x3 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);

    • 13 years ago
    • 20
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      c_determination_of_matrix_pgm.docx