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

 

isSelfDivisor


Make isSelfDivisor which if it is a three digit number and A self-divisor is a number that is divisible by each of its digits. For example, consider the number 128: 128 is divisible by its ones digit (1), tens digit (2), and hundreds digit (8).


isSelfDivisor(248) → true
isSelfDivisor(128) → true
isSelfDivisor(562) → false

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

public boolean isSelfDivisor(int x) }

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