Advertisement
obernardovieira

Using Bitwise Operators

Oct 10th, 2013
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main() {
  4.         int admin = 0;
  5.         for(int i=1; i!=11; i++) {
  6.                 if((admin & 1) | (i ^ 5)) std::cout << i << std::endl;
  7.         }
  8.  
  9.         system("pause");
  10.         return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement