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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!