using System;
public class Solution {
public int solution(int number, int n, int m) {
int answer = 0;
if((number % n == 0) && (number % m == 0))
{
answer = 1;
}
else
{
answer = 0;
}
return answer;
}
}
'프로그래머스 > Lv.0' 카테고리의 다른 글
[프로그래머스 C#] 정수 부분 (0) | 2023.08.06 |
---|---|
[프로그래머스 C#] 길이에 따른 연산 (0) | 2023.08.05 |
[프로그래머스 C#] 짝수는 싫어요 (0) | 2023.08.04 |
[프로그래머스 C#] 중앙값 구하기 (0) | 2023.08.04 |
[프로그래머스 C#] 특정 문자 제거하기 (0) | 2023.08.03 |