Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
293 B
1
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;
int main() {
    int a, b;
    int m[100];
    cin >> a;
    b = 0;
    for (int i = 0; i < a; i++){
        cin >> m[i];
    }
    for (int i = 0; i < a; i++){
        b += m[i];
    }
    cout << float(b) / float(a);
}