[BOJ/Python] B5 9498 시험 성적

jhy·2022년 12월 25일
0

BOJ

목록 보기
5/8
post-thumbnail

백준 B5 9498 시험 성적

나의 코드

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')

풀이

  • 90점 이상이면 A,
    80점 이상이면 B,
    70점 이상이면 C,
    60점 이상이면 D,
    그 외 나머지는 F 출력
profile
서비스 기획자, PM 지망생

0개의 댓글