#include <stdio.h>
int main() {/*
int age = 13;
if(age>=8 && age<=13){
printf("초등학생입니다.\n");
}else if(age>=14 && age<=16){
printf("중학생입니다.\n");
}else if(age>=17 && age<=19){
printf("고등학생입니다.\n");
}else{
printf("학생이 아닙니다.\n");
}
for(int i=1;i<11;i++){
if(i>3){
break;
}
printf("%d ", i);
}
for(int i=1;i<11;i++){
if(i==3){
continue;
}
printf("%d ", i);
}*/
int n = 1;
switch(n){
case 1:
printf("사과\n");
break;
case 2:
printf("토마토\n");
break;
default:
printf("빨간색이 아님\n");
break;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: