diff options
author | Oskar <[email protected]> | 2024-08-16 19:00:04 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-08-16 19:00:04 +0200 |
commit | bfa29c55fd58912845b5a6684489231a4d4e675e (patch) | |
tree | 615213f43d685d7cc0b14cac0fcafe70cddb07e7 /4p6.cpp | |
parent | 6ff70adb810f1e194892398656e71f979f088feb (diff) |
more exercises
Diffstat (limited to '4p6.cpp')
-rw-r--r-- | 4p6.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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; +} |