You are viewing a single comment's thread. Return to all comments →
Kotlin:
fun findDigits(n: Int): Int { val strN=n.toString() var numbers=0 strN.forEach { if(it!='0'){ val d=n%(it.digitToInt()) if(d==0) numbers++ } } return numbers }
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 →
Kotlin: