Kotlinlearncs.online LogoJava
Return to List

Solve: Teen Sum

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given 2 ints, return their sum. However, values in the range 13..19 inclusive are extra lucky. So if either int is a teen, just return 19.

int teenSum(int first, int second) {
return 0; // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: