반응형
https://www.acmicpc.net/problem/9498
9498번: 시험 성적
시험 점수를 입력받아 90 ~ 100점은 A, 80 ~ 89점은 B, 70 ~ 79점은 C, 60 ~ 69점은 D, 나머지 점수는 F를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
# @Author YoungMinKim
# baekjoon
score = int(input())
if score>=90 and score<=100:
print('A')
elif score>=80:
print('B')
elif score>=70:
print('C')
elif score>=60:
print('D')
else:
print('F')
반응형
'백준 문제풀이' 카테고리의 다른 글
| baekjoon - python - 2108 (0) | 2020.08.27 |
|---|---|
| baekjoon - python - 9653 (0) | 2020.08.27 |
| baekjoon - python - 9316 (0) | 2020.08.27 |
| baekjoon - python - 8958 (0) | 2020.08.27 |
| baekjoon - python - 8393 (0) | 2020.08.27 |
댓글