본문 바로가기
Beakjoon&프로그래머스/Java

[프로그래머스/Java] n의 배수

by 현장 2025. 2. 4.

-Code

class Solution {
    public int solution(int num, int n) {
        return num % n == 0 ? 1 : 0;
    }
}