Fundamentals13 / 15
Up next

when without a subject

fun main() {
    val score = 85
    val grade = when {
        score >= 90 -> "A"
        score >= 80 -> "B"
        else -> "C"
    }
    println(grade)
}
What you're solving

each branch is a boolean test