#include <iostream>
using namespace std;
int main()
{
const int n = 3, m = 4;
double a[n][m]{};
double b[n][m]{};
double c[n][m]{};
int i{}, j{};
for (i = 0; i < n; i++)
{
for (j = 0; j < m; j++)
{
a[i][j] = rand() % 100;
cout << a[i][j] << "\t";
}
}cout << "\n";
for (i = 0; i < n; i++)
{
for (j = 0; j < m; j++)
{
b[i][j] = rand() % 100;
cout << b[i][j] << "\t";
}
}cout << "\n";
for (i = 0; i < n; i++)
{
for (j = 0; j < m; j++)
{
c[i][j] = a[i][j] - b[i][j];
cout << c[i][j] << "\t";
}
}cout << "\n";
for (i = 0; i < n; i++)
{
for (j = 0; j < m; j++)
{
if (a[i][j] > 50 && b[i][j] > 50)
{
c[i][j] = 13;
cout << c[i][j] << "\t";
}
else c[i][j] = 12;
cout << c[i][j] << "\t";
}
}cout << "\n";
return 0;
}