Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. int z = 11;
  2.  
  3.     for (int i = 8; i >= 0; i--) {
  4.         if (z & (1 << i)) {
  5.             printf("1");
  6.         } else {
  7.             printf("0");
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement