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

 

farEnough


Given three ints, a b c, return true if the distance between a and b is at least c. Note: Math.abs(num) computes the absolute value of a number.


farEnough(1, 2, 10) → false
farEnough(1, 4, 2) → true
farEnough(5, -3, 6) → true

...Save, Compile, Run (ctrl-enter)

public boolean farEnough(int a, int b, int c) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 10

Copyright Nick Parlante 2017 - privacy