Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int n;
  4.  
  5. int main()
  6. {
  7. cin>>n;
  8. if(n==0)cout<<"0 1\n";
  9. if(n==1)cout<<"0 1\n";
  10. if(n==2)cout<<"0 2\n";
  11. if(n==3)cout<<"0 6\n";
  12. if(n==4)cout<<"2 4\n";
  13. if(n==5)cout<<"2 0\n";
  14. if(n==6)cout<<"2 0\n";
  15. if(n==7)cout<<"4 0\n";
  16. if(n==8)cout<<"2 0\n";
  17. if(n==9)cout<<"8 0\n";
  18. if(n>=10)cout<<"0 0\n";
  19.  
  20. cin.ignore();
  21. getchar();
  22. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement