Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
242 B
0
Indexable
Never

#include <iostream>
using namespace std;

int main()
{
	float n, summa = 0, CA, a;
	cout << "Input n: ";
	cin >> n;

	for (int i = 0; i < n; i++)
	{
		cin >> a;
		summa += a;
	}
	CA = summa / n;
	cout << "Srednie arifmeticheskoe: " << CA;
}