Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
526 B
1
Indexable
Never
#include <iostream>

using namespace std;

int main()
{
	int f;
	int mas[5][5];
	int mas1[5];
	const int n = 5;
	const int m = 5;
	for (int i = 0; i < n; i++) {
		for (int r = 0; r < m; r++) {
			cin >> mas[i][r];
		}
	}

	double sr[5] = {};
	int summ = 0;
	for (int i = 0; i < n; i++) {
		int summ = 0;
		for (int r = 0; r < n; r++) {

		summ = mas[i][r];
		}
		sr[i]=summ / 5.0;
	}
	
	for (int i = 0; i < n; i++) {
		cout << sr[i] << " ";
	}





	
}                                     
Leave a Comment