Study/code up
                
              [codeup] 1070 : [기초-조건/선택실행구조] 달 입력 받아 계절 출력하기
                1nfra
                 2019. 7. 23. 04:34
              
              
                    
        728x90
    
    
  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35  | #include <stdio.h> int main() {     int i;     scanf("%d", &i);     switch (i) {     case 12:     case 1:     case 2:          printf("winter");     break;     case 3:     case 4:     case 5:          printf("spring");     break;     case 6:     case 7:     case 8:         printf("summer");     break;     case 9:     case 10:     case 11:         printf("fall");     break;     }     return 0; }  | cs | 
728x90