#include<iostream>
int main() {
const unsigned limit = 8;
std::cout << "Enter " << limit << " integers.\n";
int product = 1;
for (unsigned i = 0; i < limit; ++i)
{
int value;
std::cin >> value;
product *= value;
}
std::cout << "The product of those " << limit << " numbers is " << product << '\n';
}
I2luY2x1ZGU8aW9zdHJlYW0+CgppbnQgbWFpbigpIHsKICAgIGNvbnN0IHVuc2lnbmVkIGxpbWl0ID0gODsKCiAgICBzdGQ6OmNvdXQgPDwgIkVudGVyICIgPDwgbGltaXQgPDwgIiBpbnRlZ2Vycy5cbiI7CgogICAgaW50IHByb2R1Y3QgPSAxOwogICAgZm9yICh1bnNpZ25lZCBpID0gMDsgaSA8IGxpbWl0OyArK2kpCiAgICB7CiAgICAgICAgaW50IHZhbHVlOwogICAgICAgIHN0ZDo6Y2luID4+IHZhbHVlOwogICAgICAgIHByb2R1Y3QgKj0gdmFsdWU7CiAgICB9CgogICAgc3RkOjpjb3V0IDw8ICJUaGUgcHJvZHVjdCBvZiB0aG9zZSAiIDw8IGxpbWl0IDw8ICIgbnVtYmVycyBpcyAiIDw8IHByb2R1Y3QgPDwgJ1xuJzsKfQ==