int main() { int arr[15] = {10, 5, 20, 15, 10, 5, 25, 17, 5, 8, 4, 2, 2, 15, 10}; int sum = 0;
for (int i = 0; i < 15; i++) { sum += arr[i]; } double average = sum / 15.0; int count = 0; for (int i = 0; i < 15; i++) { if (arr[i] == average) { count++; } } std::cout << "Number of elements equal to the average: " << count << std::endl; return 0;
int main() {
for (int i = 0; i < 15; i++) {int arr[15] = {10, 5, 20, 15, 10, 5, 25, 17, 5, 8, 4, 2, 2, 15, 10};
int sum = 0;
sum += arr[i];
}
double average = sum / 15.0;
int count = 0;
for (int i = 0; i < 15; i++) {
if (arr[i] == average) {
count++;
}
}
std::cout << "Number of elements equal to the average: " << count << std::endl;
return 0;
}