[프로그래머스 자바] 18. 공배수

김건우's avatar
Apr 06, 2025
[프로그래머스 자바] 18. 공배수

문제

notion image

내가 푼 코드

notion image
class Solution { public int solution(int number, int n, int m) { if (number % n == 0 && number % m == 0){ return 1; } else { return 0; } } }
Share article

gunwoo