You are viewing a single comment's thread. Return to all comments →
int dividers = 0 ; int digit = 0 ; int originalNumber =n; try{ while(n != 0){ digit = n % 10; if(digit != 0 &&originalNumber%digit==0) dividers++; n = n/10; } }catch(Exception exception){ System.out.println(exception); } return dividers;
Seems like cookies are disabled on this browser, please enable them to open this website
Find Digits
You are viewing a single comment's thread. Return to all comments →