Untitled

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

	using namespace std;

	int main() {

		float av=0.0;
		int summ=0,N;
		int mas[100];
		cin >> N;
		for (int i = 0; i < N; i++) {
			cin >> mas[i];
			summ += mas[i];
		}
		av = float(summ) / N;
		cout << av;

}
Leave a Comment