Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int s,c,n;
- cin>>s>>c>>n;
- if(s%c==0&&s%n==0)
- cout<<"CN";
- else
- if(s%c==0)
- cout<<'C';
- else
- if(s%n==0)
- cout<<'N';
- else
- cout<<"nimic";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement