Кирилл Скляров
New member
C++:
#include <bits/stdc++.h>
using namespace std;
int main()
{
system("chcp 1251");
int m, n;
cin >> m >> n;
int a[m][n];
for(int i = 0; i < m; ++i){
for(int j = 0; j < n; ++j)
cin >> a[j];
}
for(int i = 0; i < m; i += 2){
double s = 0;
for(int j = 0; j < n; ++j)
s += a[j];
cout << s/n << endl;
}
return 0;
}