Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int t;
  6. cin>>t;
  7. while(t--)
  8. {
  9. int a,x,y;
  10. cin>>a;
  11. if(a>10)
  12. {
  13. x=a-10;
  14. y=a-x;;
  15. }
  16. else
  17. {
  18. x=0;
  19. y=a;
  20. }
  21. printf("%d %d\n",x,y);
  22. }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement