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

Jmnote (토론 | 기여)님의 2024년 1월 12일 (금) 01:48 판 (새 문서: ==개요== {{프로그래머스|레벨=1|페이지=5|분류=연습문제}} 분류: 최대공약수 분류: 최소공배수 ==C++== <syntaxhighlight lang='cpp'> #include <stri...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

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

2 C++[ | ]

#include <string>
#include <vector>

using namespace std;

string solution(int num) {
    return (num%2==0)? "Even" : "Odd";
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}