Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t;
- cin>>t;
- while(t--)
- {
- int a,x,y;
- cin>>a;
- if(a>10)
- {
- x=a-10;
- y=a-x;;
- }
- else
- {
- x=0;
- y=a;
- }
- printf("%d %d\n",x,y);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement