Commit 6f2f6e76 authored by KTKadyshev's avatar KTKadyshev
Browse files

Add new file

parent 009ebee0
#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);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment