Advertisement
ms-dos32

c

Sep 9th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. freopen("input.txt","r",stdin);
  5. freopen("output.txt","w",stdout);
  6. unsigned short numb[6]={0};
  7. int i;
  8. for(i=0;i<6;i++)
  9. {
  10. scanf("%c",&numb[i]);
  11. printf("%hu\n",numb[i]);
  12. }
  13. printf("%s",(numb[0]+numb[1]+numb[2]==numb[3]+numb[4]+numb[5]) ? "YES\n" : "NO\n");
  14. fclose(stdin);
  15. fclose(stdout);
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement