[프로그래머스 코딩테스트] n의 배수

yedy·2023년 5월 13일
0
post-thumbnail

문제

소스코드

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

20초 컷

profile
공주 개발자

0개의 댓글