C++:: 프로그래머스 < 짝수와 홀수 >

jahlee·2023년 8월 5일
0

프로그래머스_Lv.1

목록 보기
55/75
post-thumbnail

간단한 문제이다.

#include <string>
#include <vector>

using namespace std;

string solution(int num) {
    if (num % 2) return "Odd";
    return "Even";
}

0개의 댓글