include iostream include stdio include cmath using namespace std int 1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <iostream>
#include <stdio.h>
#include <cmath>
using namespace std;
int a[10000][10000];
int main(){
int n;
bool check = false;
cout << "Vvedite razmer massiva" << endl;
cin >> n;
cout << "Vvedite elementi massiva" << endl;
for (int q=0; q<n; q++)
for (int w=0; w<n; w++)
cin >> a[q][w];
for (int q=0; q<n; q++){
if (a[q][q] > 0 && a[q][q] % 2 == 0){
check = true;
break;
}
}
if (check == true)
cout << "Est takoi element" << endl;
else
cout << "Net takogo elementa" << endl;
}