#include <stdio.h>
int main() {
int i;
i = 5;
if (i == 10){
printf("10입니다.\n");
}else{
printf("10이 아닙니다.\n");
}
int a, b;
a = 10;
b = 20;
if (a > b){
printf("a가 더 큽니다.\n");
}else if (a == b){
printf("a랑 b랑 같습니다.\n");
}else{
printf("b가 더 큽니다.\n");
}
int score;
scanf("%d", &score);
if (score >= 90){
printf("A");
}else if (score < 89 && score >= 80){
printf("B");
}else if (score >= 70){
printf("C");
}else if (score <= 69){
printf("F");
} // && || !
int num;
scanf("%d", &num);
switch(num){
case 1:
printf("오렌지 주스\n");
break;
case 2:
printf("콜라\n");
break;
default:
printf("다시 입력하세요.\n");
break;
}
for (int i=0; i<10; i++){
if (i > 3){
break;
}
printf("%d\n", i);
}
for (int i=0; i<10; i++){
if (i == 3){
continue;
}
printf("%d\n", i);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: