코딩테스트/[C#] 프로그래머스
[프로그래머스 | C# | Lv.0] n의 배수
냠냠쿠
2023. 8. 16. 19:36
728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181937
📝 나의 풀이
using System;
public class Solution {
public int solution(int num, int n) {
int answer = 0;
if(num%n==0) answer = 1;
return answer;
}
}
728x90