aboutsummaryrefslogtreecommitdiff
path: root/week03/exercise04.cpp
blob: fb37716167f1d9b0a22cc62a37b54d9ff84cd70a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

int main() {
	int num = 65536;
	int input;
	for (int i = 0; i < 10; i++) {
		std::cin >> input;
		if (input == 0) break;

		num /= input;
	}
	std::cout << num << std::endl;
}