diff --git a/Even_Odd.cpp b/Even_Odd.cpp new file mode 100644 index 00000000..a186d07f --- /dev/null +++ b/Even_Odd.cpp @@ -0,0 +1,20 @@ +#include +using namespace std; + +int main() +{ + int no; + cout << "Enter any number: "; + cin >> no; + + if (no % 2 == 0) + { + cout << "The given number is EVEN" << endl; + } + else + { + cout << "The given number is ODD" << endl; + } + + return 0; +}