Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KTKadyshev
KadyshevKT
Commits
ae7dbe8f
Commit
ae7dbe8f
authored
Dec 26, 2021
by
KTKadyshev
Browse files
Add new file
parent
e2e86058
Changes
1
Hide whitespace changes
Inline
Side-by-side
С/ Вариант 2/Задача 2
0 → 100644
View file @
ae7dbe8f
#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);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment