Solve: Teen Sum
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given 2 int
s, return their sum.
However, values in the range 13..19 inclusive are extra lucky.
So if either int
is a teen, just return 19.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.int teenSum(int first, int second) {
return 0;
}