Question: Write C code to compute the inverse of a N X N dimension matrix. N can be 2 or 3. a. The code must prompt
Write C code to compute the inverse of a N X N dimension matrix. N can be 2 or 3.
a. The code must prompt the user to enter N.
b. You must use for loop to scan in the matrix elements into a two-dimensional array.
c. Compute the determinant of the matrix. Check for conditions when inverse does not exist for the input matrix. Print out the determinant.
d. You must use a for/while loop in this part for array iteration.
e. Print out the matrix inverse in N X N row-column format.
f. Use nested for loops to verify that the product of the input matrix and its inverse is the Identity matrix. Print out the identity matrix
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
