시험 점수를 입력받아 90 ~ 100점은 A, 80 ~ 89점은 B, 70 ~ 79점은 C, 60 ~ 69점은 D, 나머지 점수는 F를 출력하는 프로그램을 작성하시오.
첫째 줄에 시험 점수가 주어진다. 시험 점수는 0보다 크거나 같고, 100보다 작거나 같은 정수이다.
시험 성적을 출력한다.
100
A
let input = readLine()!
let inputInt = Int(input)!
if inputInt >= 90 && inputInt <= 100 {
print("A")
} else if inputInt >= 80 && inputInt <= 89 {
print("B")
} else if inputInt >= 70 && inputInt <= 79 {
print("C")
} else if inputInt >= 60 && inputInt <= 69 {
print("D")
} else {
print("F")
}