Advertisement
ms-dos32

Untitled

Sep 9th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. FILE *input=fopen("input.txt","r");
  6. FILE *output=fopen("output.txt","w");
  7. rewind(output);
  8. unsigned short a=0,b=0;
  9. if( fscanf(input,"%u %u",&a,&b)!=EOF )
  10. fprintf(output,"%u %u",b-1,a-1);
  11. fclose(input);
  12. fclose(output);
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement