C program to check whether a matrix is an identity matrix or not.

 

Sample Input
Enter the dimensions of the matrix:3  3
Enter the elements to the matrix
1 0 0
0 1 0
0 0 1
Sample Output
Entered matrix is
1 0 0
0 1 0
0 0 1
It is an identity matrix

You may also like...