Untitled
#include <iostream> using namespace std; int main() { int n; int a; int sum = 0; cin >> n; for (int i = 0; i < n; i++) { cin >> a; sum += a; } cout << (double)sum / n;; }
#include <iostream> using namespace std; int main() { int n; int a; int sum = 0; cin >> n; for (int i = 0; i < n; i++) { cin >> a; sum += a; } cout << (double)sum / n;; }