id/email
password
forgot password
about | help | done | prefs | create account
JavaBat java practice problems

Logic-1 > twoAsOne
prev  |  next  |  chance

Given three ints, a b c, return true if it is possible to add two of the ints to get the third.

twoAsOne(1, 2, 3) → true
twoAsOne(3, 1, 2) → true
twoAsOne(3, 2, 2) → false

...Save, Compile, Run

See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  JavaBat  >  Logic-1

Forget It! -- delete my code for this problem 136.0

Copyright Nick Parlante 2006-09 - privacy