score = int(input())
if 90 <= score <= 100:
result = "A"
elif 80 <= score < 90:
result = "B"
elif 70 <= score < 80:
result = "C"
elif 60 <= score < 70:
result = "D"
else:
result = "F"
print(result)
Python
복사
a = int(input())
if a >= 90:
print("A")
elif a >= 80:
print("B")
elif a >= 70:
print("C")
elif a >= 60:
print("D")
else:
print("F")
Python
복사