짝수와 홀수

han.user();·2023년 4월 12일
0

프로그래머스

목록 보기
56/87
post-thumbnail

class Solution {
    public String solution(int num) {

        if (num % 2 == 0) {
            return "Even";
        } else {
            return "Odd";
        }
    }
}
profile
I'm still hungry.

0개의 댓글