#include <string>
#include <vector>
using namespace std;
string solution(int num) {
string answer = "";
if (num % 2 == 0)
answer += "Even";
else
answer += "Odd";
return answer;
}
'Language > C++' 카테고리의 다른 글
[C++ / 백준 11654] 아스키 코드 (0) | 2021.07.27 |
---|---|
[C++ / 백준 2562] 숫자의 합 (0) | 2021.07.26 |
[C++ / 백준 2562] 최댓값 (0) | 2021.07.26 |
[C++ / 백준 10818] 최소, 최대 (0) | 2021.07.26 |
[C++ / 프로그래머스 level 1] 평균 구하기 (0) | 2021.06.20 |