#include <stdio.h>

int main() {
    int num;
    printf("숫자 입력\n");
    scanf("%d",&num);
    
    switch(num){
        case 1:
            printf("콜라가 나왔습니다\n");
            break;
       
        case 2:
            printf("사이다가 나왔습니다\n");
            break;
       
        case 3:
            printf("물이 나왔습니다\n");
            break;

        default:
            printf("없는 메뉴입니다\n");
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: