Untitled

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