Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1. public boolean twoAsOne(int a, int b, int c) {
  2.   if (a+b == c)
  3.   return true;
  4.   else if (a+c == b)
  5.   return true;
  6.   else if (b+c == a)
  7.   return true;
  8.   else
  9.   return false;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement