Language/C++
[C++ / 프로그래머스 level 1] 짝수와 홀수
ej503
2021. 6. 20. 18:49
#include <string>
#include <vector>
using namespace std;
string solution(int num) {
string answer = "";
if (num % 2 == 0)
answer += "Even";
else
answer += "Odd";
return answer;
}