Network & Server Factory

개인 공부 기록

Algorithm/CodeUp

[codeup] 1065 : [기초-조건/선택실행구조] 정수 세 개 입력받아 짝수만 출력하기

1nfra 2019. 7. 23. 04:32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
 
int main() {
 
    int a, b,c;
    scanf("%d%d%d", &a, &b, &c);
    if (a % 2 == 0) {
        printf("%d\n", a);
    }
    if (b % 2 == 0) {
        printf("%d\n", b);
    }
    if (c% 2 == 0) {
        printf("%d\n", c);
    }
 
    return 0;
}
 
cs
728x90
서울
--:--:--
-전체 글
-카테고리
오늘 방문