Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodingBat-Logic1-teenSum #250

Open
divinedragon opened this issue Jun 30, 2017 · 0 comments
Open

CodingBat-Logic1-teenSum #250

divinedragon opened this issue Jun 30, 2017 · 0 comments

Comments

@divinedragon
Copy link
Owner

Write code and JUnit test cases for CodingBat-Logic1-teenSum

Url - http://codingbat.com/prob/p178728

Problem Statement:

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

Expected method declaration

public int teenSum(int a, int b) {
}
divinedragon added a commit that referenced this issue Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant