Write code and JUnit test cases for CodingBat-Logic1-lessBy10
Url - http://codingbat.com/prob/p179196
Problem Statement:
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
Expected method declaration
public boolean lessBy10(int a, int b, int c) {
}
Write code and JUnit test cases for CodingBat-Logic1-lessBy10
Url - http://codingbat.com/prob/p179196
Problem Statement:
Given three ints, a b c, return true if one of them is 10 or more less than one of the others.
Expected method declaration