class Solution {
public int solution(int number, int n, int m) {
if (number%n==0 & number%m==0) return 1;
else return 0;
}
}
[다른 사람의 풀이]
class Solution {
public int solution(int number, int n, int m) {
return number % n == 0 && number % m == 0 ? 1 : 0;
}
}