class Solution { public String solution(int num) { return (num % 2 == 0) ? "Even" : "Odd"; } }
출처: 프로그래머스 코딩 테스트 연습, https://programmers.co.kr/learn/challenges