[Programmers] 004 - n의 배수

Sunny·2023년 5월 9일
0

class Solution {
    public int solution(int num, int n) {
        if(num % n != 0) {
            return 0;
        } else {
            return 1;
        }
    }
}
profile
자꾸자꾸 헤엄치는 중

0개의 댓글