BASIC의 개발 노트
1207 : 윷놀이 본문
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <stdio.h> int main() { int a, b, c, d; int s; scanf("%d %d %d %d", &a, &b, &c, &d); s = a + b + c + d; if (s == 0) printf("모"); if (s == 1) printf("도"); if (s == 2) printf("개"); if (s == 3) printf("걸"); if (s == 4) printf("윷"); return 0; } | cs |
'Algorithm > CodeUp' 카테고리의 다른 글
| 1212 : 삼각형의 성립 조건 (0) | 2019.04.28 |
|---|---|
| 1210 : 칼로리 계산하기 (0) | 2019.04.28 |
| 1206 : 배수 (0) | 2019.04.28 |
| 1205 : 최댓값 (0) | 2019.04.28 |
| 1204 : 영어 서수로 표현하기 (0) | 2019.04.28 |
Comments