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.

int max1020(int setFirst, int setSecond) {
return 0; // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: