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.

boolean loneTeen(int first, int second) {
return false; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: