id/email
password
forgot password
about | help | done | prefs | create account
CodingBat code practice

Java > Logic-1 > lessBy10
prev  |  next  |  chance

Given three ints, a b c, return true if one of them is 10 or more less than one of the others.

lessBy10(1, 7, 11) → true
lessBy10(1, 7, 10) → false
lessBy10(11, 1, 7) → true

...Save, Compile, Run

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


prev  |  next  |  chance   |  CodingBat  >  Logic-1

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

Copyright Nick Parlante 2006-10 - privacy