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.

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

Related Lessons

Stuck? You may find these lessons helpful: