Commit e2e86058 authored by KTKadyshev's avatar KTKadyshev
Browse files

Add new file

parent 009ebee0
#include <iostream>
using namespace std;
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];
cout << "Определитель = " << delta << endl;
}
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