#include <stdio.h>
int main()
{
int num;
do {
printf("1. Korea \n");
printf("2. USA \n");
printf("3. Japan \n");
printf("4. China \n");
printf("number? ");
scanf("%d", &num);
switch (num) {
case 1:
printf("\nSeoul \n\n");
break;
case 2:
printf("\nWashington \n\n");
break;
case 3:
printf("\nTokyo \n\n");
break;
case 4:
printf("\nBeijing \n\n");
break;
default:
printf("\nnone \n\n");
}
} while (num >= 1 && num <= 4);
return 0;
}
¸Â´Â°Í °°´Âµ¥ °è¼Ó Ʋ¸®´Ù°í ³ª¿À³×¿ä...