Lucian_Adrian

Untitled

Aug 4th, 2021
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int n, a, b;
  4. int main(){
  5. cin >> n >> a >> b;
  6. if(n % a == 0 && n % b != 0)
  7. cout << "C";
  8. else if(n % a != 0 && n % b == 0)
  9. cout << "N";
  10. else if(n % a == 0 && n % b == 0)
  11. cout << "CN";
  12. else
  13. cout << "nimic";
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment