#include <stdio.h>
int main() {
int age = 10;
if (age <= 13){
printf("초등학생입니다.\n");
}
int a = 5;
if (a > 0 && a < 11){
printf("0보다 크면서 11보다 작습니다.\n");
}
if (a > 0){
printf("0보다 큽니다.\n");
}else{
printf("0보다 작습니다.\n");
}
int b;
scanf("%d", &b);
if(b >= 8 && b <= 13){
printf("초등학생입니다.\n");
}else{
printf("초등학생이 아닙니다.\n");
}
int c = 15;
if (c >= 8 && c <= 13){
printf("초등학생입니다.\n");
}else if(c >= 14 && c <= 16){
printf("중학생입니다.\n");
}else if(c >= 17 && c <= 19){
printf("고등학생입니다.\n");
}else{
printf("학생이 아닙니다.\n");
}
int score;
scanf("%d", &score);
if (score >= 90){
printf("A\n");
}else if (score >= 80){
printf("B\n");
}else if (score >= 70){
printf("C\n");
}else{
printf("F\n");
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: