✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Mi lesz kiírva?
val dayIndex : Int = 6
when (dayIndex) {
in 0..5 -> println("Workday")
in 6..7 -> println("Weekend")
else -> {
println("Error")
}
}