Untitled

mail@pastecode.io avatar
unknown
c_cpp
10 months ago
200 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int n;
	int a;
	int sum = 0;

	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> a;
		sum += a;
	}
	cout << (double)sum / n;;
}