#include <iostream>
#include <cstdlib>
using namespace std;
#define n 10
int main(){
int sum;
int mas[n][n];
for(int i = 0; i < n; i++){
for(int j = 0; j < n; j++){
mas[i][j] = rand()% 30 - 10;
cout << mas[i][j] << " ";
}
cout << endl;
}
cout << "Суммы по столбцам:" << endl;
for(int i = 0; i < n; i++){
sum = 0;
for(int j = 0; j < n; j++){
if(mas[j][i] > 0 && mas[j][i] % 2 == 0)
sum += mas[j][i];
}
cout << sum << " ";
}
return 0;
}