Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int z = 11;
- for (int i = 8; i >= 0; i--) {
- if (z & (1 << i)) {
- printf("1");
- } else {
- printf("0");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement