Kotlinlearncs.online LogoJava
Return to List

Solve: Lone 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 2 Int values, return true if one or the other is teen, but not both.

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

Related Lessons

Stuck? You may find these lessons helpful: