Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
258 B
9
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int a;
    int b;
    cin >> a >> b;
    double s = 0;
    int i = 1;
    while (i < a)
    {
        i++;
        cin >> b;
        s += b;
    }
    cout << s / a;
    return 0;
}