Study/code up
[codeup] 1065 : [기초-조건/선택실행구조] 정수 세 개 입력받아 짝수만 출력하기
1nfra
2019. 7. 23. 04:32
728x90
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