Escolar Documentos
Profissional Documentos
Cultura Documentos
#include <stdio.h>
void main()
{
int A[10][10];
int i, j, R, C, flag =1;
if(flag == 1 )
printf("It is identity matrix\n");
else
printf("It is not a identity matrix\n");
}
/*------------------------------------------
Output
Run 1
Enter the order of the matrix A
2 2
Enter the elements of matrix A
2 2
1 2
MATRIX A is
2 2
1 2
It is not a identity matrix
Run 2
Enter the order of the matrix A
2 2
Enter the elements of matrix A
1 0
0 1
MATRIX A is
1 0
0 1
It is identity matrix
------------------------------------------*/