문제
풀이
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
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;
}
'공부 > 코딩테스트' 카테고리의 다른 글
[프로그래머스,C언어] 원소들의 곱과 합 (2) | 2024.03.16 |
---|---|
[프로그래머스] 문자열 출력하기 (0) | 2024.03.04 |