blob: cfdbeb4bd776938d38b7fdbc3feca551ac9ed432 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <iostream>
int main() {
int product = 1;
int number;
std::cin >> number;
while (number != 0) {
product *= number;
std::cin >> number;
}
std::cout << product;
return 0;
}
|