Question: (Coding Bat Assignment) Given 2 ints, a and b, return their sum. However, teen values in the range 13..19 inclusive, are extra lucky. So if
(Coding Bat Assignment) 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. teenSum(3, 4) 7 teenSum(10, 13) 19 teenSum(13, 2) 19
Solution : - public int teenSum(int a, int b)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
