Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 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=3)cout<<"6\n";
  9. if(n=4)cout<<"2 4\n";
  10. if(n=5,n=6,n=8)cout<<"2 0\n";
  11. if(n=7)cout<<"4 0\n";
  12. if(n=9)cout<<"8 0\n";
  13. if(n>=10)cout<<"0 0\n";
  14.  
  15. cin.ignore();
  16. getchar();
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement