Kotlin - Control Flow as Expressions
You want to print a message based on temperature using
when without argument. Which code correctly prints "Cold" if temp < 10, "Warm" if between 10 and 25, and "Hot" otherwise?