카테고리 없음
프로그래머스 - 짝수와 홀수
miffy짱
2022. 8. 6. 12:13
반응형
아하!
#include <string>
#include <vector>
using namespace std;
string solution(int num) {
string answer = "";
if (num%2 == 0)
answer = "Even";
else
answer = "Odd";
return answer;
}