Skip to content
Snippets Groups Projects
Commit ae7dbe8f authored by KTKadyshev's avatar KTKadyshev
Browse files

Add new file

parent e2e86058
No related branches found
No related tags found
No related merge requests found
#include <stdio.h>
int main()
{
int A[3][3],B[3][3];
int i, j;
A[0][0]=2;A[0][1]=1;A[0][2]=0;
A[1][0]=1;A[1][1]=2;A[1][2]=2;
A[2][0]=4;A[2][1]=3;A[2][2]=-1;
B[0][0]=1;B[0][1]=1;B[0][2]=3;
B[1][0]=1;B[1][1]=4;B[1][2]=0;
B[2][0]=1;B[2][1]=-2;B[2][2]=-1;
for (i=0;i<3;i++){
for (j=0;j<3;j++){
A[i][j]=A[i][j]+B[i][j];
}
}
int delta=A[0][0]*A[1][1]*A[2][2]+A[1][0]*A[2][1]*A[0][2]+A[0][1]*A[1][2]*A[2][0]-A[0][2]*A[1][1]*A[2][0]-A[1][0]*A[0][1]*A[2][2]-A[0][0]*A[2][1]*A[1][2];
printf("определитель = %d", delta);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment