//Язык C++
#include
int main()
{
const int size = 5;
int numbers[size];
int sum = 0;
for (int i = 0; i < size; i++)
{
std::cout << "Enter " << i + 1 << " number: "; <br>
std::cin >> numbers[i];
sum += numbers[i];
}
std::cout << "\nArifmetical mean: " << (double)sum / size; <br>
return 0;
}
//Example: 1 2 3 4 5 => output: 3