반응형
SOLUTION
score = int(input())
if score >= 90:
print('A')
elif score >= 80:
print('B')
elif score >= 70:
print('C')
elif score >= 60:
print('D')
else:
print('F')
if ~ else 문 활용의 기본적인 문제
'코딩테스트 대비 > BOJ' 카테고리의 다른 글
[Baekjoon/Python] 2739번: 구구단 - 효과는 굉장했다! (0) | 2021.10.06 |
---|---|
[Baekjoon/Python] 2438번: 별 찍기 - 1 - 효과는 굉장했다! (0) | 2021.10.06 |
[Baekjoon/Python] 1330번: 두 수 비교하기 - 효과는 굉장했다! (0) | 2021.10.05 |
[Baekjoon/Python] 1008번: A/B - 효과는 굉장했다! (0) | 2021.10.05 |
[Baekjoon/Python] 11654번: 아스키코드 - 효과는 굉장했다! (0) | 2021.10.05 |