Advertisement
a53

Cumparaturi1

a53
Nov 10th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int s,c,n;
  7. cin>>s>>c>>n;
  8. if(s%c==0&&s%n==0)
  9. cout<<"CN";
  10. else
  11. if(s%c==0)
  12. cout<<'C';
  13. else
  14. if(s%n==0)
  15. cout<<'N';
  16. else
  17. cout<<"nimic";
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement