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

 

konstans@stuy.edu > anyInRangeDivisibleByValue
prev  |  next  |  chance

Return true if any of the values from start to end inclusive are evenly divisible by value. If not return false. Assume start <= end, and start is a positive value. Remember that remainder is the % operator in java.


anyInRangeDivisibleByValue(1, 10, 7) → true
anyInRangeDivisibleByValue(15, 20, 7) → false
anyInRangeDivisibleByValue(8, 13, 7) → false

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

boolean anyInRangeDivisibleByValue(int start, int end, int value){ }

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

Copyright Nick Parlante 2017 - privacy