X11: teenSum

Write a function in Java that implements the following logic: Given 2 ints, a and b, return their sum. However, "teen" values in the range 13..19 inclusive, are extra lucky. So if either value is a teen, just return 19.

Your Answer:


Practice a different Java exercise


Your feedback will appear here when you check your answer.