Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- bool f(int n, int a, int b, int c)
- {
- if(n % a == 0)
- return true;
- if(n % b == 0)
- return true;
- if(n % c == 0)
- return true;
- return false;
- }
- int main()
- {
- cout << f(17, 2, 3, 7) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement