Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int c = getchar();
- while(c != EOF)
- {
- int a = c / (256/16);
- int b = 1<<a;
- b = b - 1;
- putchar((b & 0xFF00) >> 8);
- putchar(b & 0xFF);
- c = getchar();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment