summaryrefslogtreecommitdiff
path: root/4p10.cpp
blob: 5e18c6bcbd8a99a70b1faba60d89dd52678759c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>

/*
 *
 * 4.10
 *
 *
 */

int main () {

	int val;
	while(std::cin >> val && val != 42) {
	}

	if(val == 42) {
		std::cout << "We found 42!" << std::endl;
	}
	
	return 0;
}