using System;
public class Solution {
public int solution(int num, int n) {
int answer = 0;
if (num%n==0) answer = 1;
else answer = 0;
return answer;
}
}
'코딩 테스트 > Lv.0' 카테고리의 다른 글
홀짝에 따라 다른 값 반환하기 (0) | 2025.01.02 |
---|---|
공배수 (1) | 2025.01.02 |
두 수의 연산값 비교하기 (0) | 2025.01.02 |
더 크게 합치기 (0) | 2025.01.02 |
문자열 곱하기 (0) | 2025.01.02 |