Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
186 B
0
Indexable
Never
#include <iostream> 
using namespace std; int main() { int i, m[9999] = {};int suma = 0;cin >> i;for (int u = 0; u < i; u++){ cin >> m[u];suma += m[u]; }cout << float(suma) / float(i);}
Leave a Comment