Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n;
- scanf("%d", &n);
- for(int j = 0; j < 256; ++j) {
- for(int i = 31; i >= 0; --i) {
- int c = (j & ( 1 << i )) >> i;
- printf("%d", c);
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Comments
-
- Technically that is just plain Kernighan and Ritchie. That's what they made America out of, long ago- all of it- from C to shining C.
Add Comment
Please, Sign In to add comment