기말 문제와 비슷한 느낌이 나왔네요
점수 구분하는 건 국룰인가봐요
#include <stdio.h>
int main() {
int score;
scanf("%d", &score);
if (100 >= score && score >= 90)
printf("A");
else if (90 > score && score >= 80)
printf("B");
else if (80 > score && score >= 70)
printf("C");
else if (70 > score && score >= 60)
printf("D");
else if (60 > score && score >= 0)
printf("F");
else
return 0;
return 0;
}
근데 else if에 (score >= 80) 이것만 넣으면 왜 안되지
몰루겠도다
'백준' 카테고리의 다른 글
[백준/C] 2753번: 윤년 (0) | 2024.06.29 |
---|---|
[백준/C] 14681번: 사분면 고르기 (0) | 2024.06.29 |
[백준/C] 10699번: 오늘 날짜 (0) | 2024.06.29 |
[백준/C] 7287번: 등록 (0) | 2024.06.29 |
[백준/C] 25083번: 새싹 (0) | 2024.06.29 |
댓글