Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
337 B
0
Indexable
Never
#include <iostream>

using namespace std;
int main()
{
	int mas[5][5], count = 0, a = 0;
	float mass[5];
	for (int i = 0; i < 5; i++) {
		for (int j = 0; j < 5; j++) {
			cin >> mas[i][j];
			count += 1;
			a += mas[i][j];
		}
		mass[i] = float(a) / float(count);
		count = 0;
		a = 0;
		cout << mass[i] << ' ';
	}
	
}
Leave a Comment