C# 알고리즘 코드카타

11. 짝수와 홀수

잼잼재미 2023. 11. 3. 20:25

public class Solution {
    public string solution(int num) {
        if(num % 2 == 0)
        {
            return "Even";
        }
        else
        {
            return "Odd";
        }
    }
}
저작자표시 (새창열림)