#include <stdio.h>
int main() {
// &&
// ||
// !
int i;
i=10;
//if~else문
if(i<10){
printf("10보다 작습니다.");
}else{
printf("10보다 크거나 같습니다.");
}
int score;
scanf("%d", &score);
if(score>0){
if(90>=score){
printf("A");
}else if(90>score && score>=70){
printf("B");
}else if(70>score && score>=50){
printf("C");
}else if(score<50){
printf("F");
}
}else{
printf("다시 입력하세요.");
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: