Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
185 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int n;
	float a, s = 0;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> a;
		s += a;
	}
	s /= n;
	cout << s;
}