Kotlinlearncs.online LogoJava
Return to List

Solve: Max 10..20

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given 2 positive int values, return the larger value that is in the range 10..20 inclusive, or return 0 if neither is in that range.

fun max1020(
first: Int,
second: Int,
): Int {
return 0 // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: