Write a C program to read elements in a matrix and check whether matrix is an Identity matrix or not. C program for finding Identity matrix. Logic to check identity matrix in C programming.
Example
Input
Input elements in matrix: 1 0 0 0 1 0 0 0 1
Output
It is an Identity matrix