Kotlinlearncs.online LogoJava
Return to List

Solve: Has Teen

Imported By: Geoffrey Challen
/ Version: 2021.4.0

We'll say that a number is "teen" if it is in the range 13..19 inclusive. Given 3 int values, return true if 1 or more of them are teen.

fun hasTeen(
first: Int,
second: Int,
third: Int,
): Boolean {
return false // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: