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

 

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

Write a method that returns 'true' if 'num' is both a multiple of 'mult1' and also of 'mult2'; return false otherwise. As preconditions you may assume that all parameters are integers greater than 1, and that 'num' is greater than both 'mult1' and 'mult2'.


test2022_11_17_APP1SLHL_multipleOfBoth(15, 5, 3) → true
test2022_11_17_APP1SLHL_multipleOfBoth(1509, 503, 3) → true
test2022_11_17_APP1SLHL_multipleOfBoth(19, 2, 5) → false

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

public boolean test2022_11_17_APP1SLHL_multipleOfBoth(int num, int mult1, int mult2) { }

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

Copyright Nick Parlante 2017 - privacy