summaryrefslogtreecommitdiff
path: root/4p10.cpp
diff options
context:
space:
mode:
Diffstat (limited to '4p10.cpp')
-rw-r--r--4p10.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/4p10.cpp b/4p10.cpp
new file mode 100644
index 0000000..5e18c6b
--- /dev/null
+++ b/4p10.cpp
@@ -0,0 +1,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;
+}