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

 

jebbert@volusia.k12.fl.us > test2020_10_15_APP1SLHL_countMults
prev  |  next  |  chance

Write a method that returns how many multiples of 'mult' there are between 'low' and 'high' inclusively. For example, if low=9, high=33, and mult=10 you would return a 3 since there are 3 multiples of 10 between 9 and 33 inclusively.


test2020_10_15_APP1SLHL_countMults(7, 12, 8) → 1
test2020_10_15_APP1SLHL_countMults(3, 15, 5) → 3
test2020_10_15_APP1SLHL_countMults(3, 15, 2) → 6

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

public int test2020_10_15_APP1SLHL_countMults(int low, int high, int mult) { }

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: 240

Copyright Nick Parlante 2017 - privacy