int main() {const int size = 10;int A[size] = {5, 2, 8, 10, 3, 6, 4, 7, 9, 1};int maxIndex = 0;int product = 1;
}
int main() {
for (int i = 1; i < size; i++) {const int size = 10;
int A[size] = {5, 2, 8, 10, 3, 6, 4, 7, 9, 1};
int maxIndex = 0;
int product = 1;
if (A[i] > A[maxIndex]) {
maxIndex = i;
}
}
for (int i = maxIndex + 1; i < size; i++) {
product *= A[i];
}
std::cout << "Произведение элементов после максимального: " << product << std::endl;
return 0;
}