공부/BAEKJOON
[python파이썬]백준 9498번 : 시험 성적
knhoo
2023. 5. 1. 01:07
728x90
점수를 입력받은 뒤 점수에 따른 성적을 출력을 하는 프로그램이다.
조건문을 사용하여 작성할 수 있다.
▼내 제출
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')
728x90