Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean twoAsOne(int a, int b, int c) {
- if (a+b == c)
- return true;
- else if (a+c == b)
- return true;
- else if (b+c == a)
- return true;
- else
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement