odd even using bitwise code example
Example: how to check if the number is even or odd using bitwise operator
#include<bits/stdc++.h>
using namespace std;
int main()
{
int num;
cin>>num;
if(num & 1){
cout<<"odd";
}
else{
cout<<"even";
}
return 0;
}