summaryrefslogtreecommitdiff
path: root/4p6.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-16 19:00:04 +0200
committerOskar <[email protected]>2024-08-16 19:00:04 +0200
commitbfa29c55fd58912845b5a6684489231a4d4e675e (patch)
tree615213f43d685d7cc0b14cac0fcafe70cddb07e7 /4p6.cpp
parent6ff70adb810f1e194892398656e71f979f088feb (diff)
more exercises
Diffstat (limited to '4p6.cpp')
-rw-r--r--4p6.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/4p6.cpp b/4p6.cpp
new file mode 100644
index 0000000..e7465f6
--- /dev/null
+++ b/4p6.cpp
@@ -0,0 +1,22 @@
+#include <iostream>
+
+/*
+ *
+ * 4.6
+ *
+ *
+ */
+
+int main () {
+
+ int input;
+ if(std::cin >> input) {} else { return -1; }
+
+ if(input % 2 == 0) {
+ std::cout << "Even" << std::endl;
+ } else {
+ std::cout << "Odd" << std::endl;
+ }
+
+ return 0;
+}