Untitled

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