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

 

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

Write a method that returns true if 'checkFactor' is a factor of 'origNum'. For x to be a factor of y, there must exist a positive integer n, such that x*n=y. Note that both input parameters will be positive.


ppp1IsFactor(101, 101) → true
ppp1IsFactor(44, 2) → true
ppp1IsFactor(44, 5) → false

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

public boolean ppp1IsFactor(int origNum, int checkFactor) { }

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