Skip to content

Commit 0899766

Browse files
committed
solve(programmers): LV0_홀짝 구분하기_c++
# id: 문제 id를 숫자로 작성 # categories : 해당 문제의 유형을 ,로 구분하여 작성 # tags : 해당 문제의 태그를 ,로 구분하여 작성 # time : 해당 문제 풀이에 걸린 시간을 분단위 숫자로 작성 # try : 해당 문제에 몇번의 시도를 했는지 숫자로 작성 # help: 해당 문제에 외부의 도움을 받았는지 true/false로 작성 # url : 해당 문제의 url을 작성 id: categories: [] tags: [] time: try: help: false url:
1 parent 2bbfa62 commit 0899766

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <iostream>
2+
3+
using namespace std;
4+
5+
int main(void) {
6+
int n;
7+
cin >> n;
8+
if(n%2==0){
9+
cout << n<<" is even";
10+
}else cout << n<<" is odd";
11+
return 0;
12+
}

0 commit comments

Comments
 (0)