#include
using namespace std;
int main(){
int n = 0;
cout << "Введіть розмірність матриці n*n: ";</strong>
cin >> n;
int A[n][n];
for(int i = 0; i
for(int j = 0; j
cout << "Введіть А[" << i << "][" << j << "]: ";</strong>
cin >> A[i][j];
}
}
int sum = 0;
cout << "\n\nМатриця:\n";</strong>
for(int i = 0; i
for(int j = 0; j
cout << A[i][j] << " ";</strong>
if(A[i][j]%2 != 0) sum+=A[i][j];
}
cout << endl;</strong>
}
cout << "\n\nСума: " << sum;</strong>
cout << endl;</strong>
return 0;
}