프로그래머스 - 짝수와 홀수

well-life-gm·2021년 11월 6일
0

프로그래머스

목록 보기
37/125

프로그래머스 - 짝수와 홀수

1레벨짜리 문제다.

#include <string>
#include <vector>

using namespace std;

string solution(int num) {
    return num & 1 ? "Odd" : "Even";
}
profile
내가 보려고 만든 블로그

0개의 댓글