Advertisement
DBP625

Opposite task.

Apr 4th, 2022
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int n,t;
  6. cin>>t;
  7. while(t--)
  8. {
  9.     int n;
  10.     cin>>n;
  11.     if(n>=10)
  12.     {
  13.         cout<<10<<" "<<(n-10)<<endl;;
  14.     }
  15.     else
  16.     {
  17.         cout<<0<<" "<<n<<endl;;
  18.     }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement