Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int y, a, b;
  7.  
  8. FILE *input = fopen("a.txt", "r");
  9. FILE *output = fopen("b.txt", "w");
  10.  
  11. if(!input || !output) return 1;
  12.  
  13. fscanf(input, "%d %d", &a, &b);
  14.  
  15. a = a >> 2;
  16. b = b << 19;
  17.  
  18. y = a + b;
  19. y = y << 3;
  20.  
  21. fprintf(output, "%d\n", y);
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement