Max Value in Kotlin
Level 121 keystrokes
Finds and prints the larger of two values.
Kotlin code
// maxOf() returns the larger of its arguments// It compares 5 and 10 and prints 101println(maxOf(5, 10))Output
10
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Kotlin code and how often they appear.
(× 2)× 2,× 1