C program to print unit matrix

C program to print unit matrix

Output:

Enter the elements of matrix to check for identity matrix or not:
1 0 0
0 1 0
0 0 1

1 0 0
0 1 0
0 0 1
       is an Identity matrix or Unit matrix

Implementation: