when(a) {
    in 90..100 -> print('A')
    in 80..89 -> print('B')
    .
    .
    .


코틀린 하장(๑·`▱´·๑)