java

[프로그래머스 - 자바] 짝수와 홀수

tues 2023. 9. 7. 17:34

문제 설명

 

솔루션

class Solution {
    public String solution(int num) {
        return num % 2 == 0? "Even": "Odd";
    }
}