From 50dc1c4804674e793253ba021ef1a642dd0e9870 Mon Sep 17 00:00:00 2001 From: Aryan Saxena <100140924+AryanSaxenaa@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:56:41 +0530 Subject: [PATCH] Created Even-Odd.cpp, program that checks if a number is even or odd issue#8 Created Even-Odd.cpp, program that checks if a number is even or odd issue #8 issue #8 --- Even-Odd.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Even-Odd.cpp diff --git a/Even-Odd.cpp b/Even-Odd.cpp new file mode 100644 index 0000000..d20b495 --- /dev/null +++ b/Even-Odd.cpp @@ -0,0 +1,13 @@ +#include +using namespace std; +int main() { + int a; + cout << "Enter the number: "; cin >> a; + if (a % 2 == 0) { + cout << "The given number is EVEN" << endl; + } + else { + cout << "The given number is ODD" << endl; + } + return 0; +}