summaryrefslogtreecommitdiff
path: root/4p10.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-16 22:09:58 +0200
committerOskar <[email protected]>2024-08-16 22:09:58 +0200
commitaa9b47d8f1a8b3fac4d80276401e6d0884edb86a (patch)
tree19fc006b979a0202b5095291896fd5679c4a5036 /4p10.cpp
parentbfa29c55fd58912845b5a6684489231a4d4e675e (diff)
more
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;
+}