Skip to content

Commit 2166584

Browse files
committed
add evenodd cpp
1 parent 3c9a591 commit 2166584

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

BitManipulation/even_odd/evenOdd.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <iostream>
2+
using namespace std;
3+
int main()
4+
{
5+
int n;
6+
cout<<"Enter any number: "<<endl;
7+
cin>>n;
8+
cout<< (n&1?"Number is Odd":"Number is Even")<<endl;
9+
}

0 commit comments

Comments
 (0)