#include <iostream>
using namespace std;
int main()
{
int i = 1,
a[7][7] = {
{ 1, 8, 3, 9, 6, 5, 5 },
{ 0, 7, 4, 2, 5, 5, 4 },
{ 8, 6, 3, 5, 1, 2, 3 },
{ 2, 4, 9, 4, 8, 3, 4 },
{ 2, 1, 7, 5, 5, 5, 6 },
{ 7, 4, 2, 4, 9, 2, 7 },
{ 0, 9, 6, 3, 1, 7, 2 }
},
p = a[0][0];
while (i < 7) {
p *= a[i][i];
i++;
}
do {
cout << p << ' ';
i--;
p /= a[i][i];
} while (i > 0);
return 0;
}
Coroană, pls? ;D