algorithms/implementation/find-digits.c
int findDigits(int n) {
    int num = n;
    int count = 0;
    while (num > 0) {
        int div = num % 10;
        if (div && ((n % div) == 0)) {
            count++;
        }
        num /= 10;
    }
    return count;
}
// Complete the findDigits function below.
Complete the findDigits function below.
Complete the findDigits function below .
int findDigits(int n) {
    int num = n;
    int count = 0;
    while (num > 0) {
        int div = num % 10;
        if (div && ((n % div) == 0)) {
            count++;
        }
        num /= 10;
    }
    return count;
}
int findDigits ( int n ) { int num = n ; int count = 0 ; while ( num > 0 ) { int div = num % 10 ; if ( div && ( ( n % div ) == 0 ) ) { count ++ ; } num /= 10 ; } return count ; }
Complete the findDigits function below.
Complete the findDigits function below .