Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
309 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int N;
    cin >> N;
    int mass[100];
    float summ = 0;
    for (int i = 0; i < N; i++)
    {
        cin >> mass[i];
        summ += mass[i];
    }
        float average = summ / N;
        cout << average << endl;
    return 0;
}
Leave a Comment