Min Value in Kotlin

Level 120 keystrokes

Finds and prints the smaller of two values.

Kotlin code

// minOf() returns the smaller of its arguments
// It compares 3 and 8 and prints 3
1println(minOf(3, 8))

Output

3
Practice typing this code

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

More Kotlin examples at level 1

← Kotlin typing practice