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

 

dvermes@scarsdaleschools.org > isFactor
prev  |  next  |  chance

Given two integers x and y, return true if x is a factor of y, false otherwise. Recall that 0 is not considered to be a factor of other numbers, but other numbers are a factor of 0.


isFactor(2, 8) → true
isFactor(2, 7) → false
isFactor(0, 4) → false

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

public boolean isFactor(int x,int y) { }

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

Copyright Nick Parlante 2017 - privacy