From aa9b47d8f1a8b3fac4d80276401e6d0884edb86a Mon Sep 17 00:00:00 2001 From: Oskar Date: Fri, 16 Aug 2024 22:09:58 +0200 Subject: more --- 4p10.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 4p10.cpp (limited to '4p10.cpp') 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 + +/* + * + * 4.10 + * + * + */ + +int main () { + + int val; + while(std::cin >> val && val != 42) { + } + + if(val == 42) { + std::cout << "We found 42!" << std::endl; + } + + return 0; +} -- cgit v1.2.3