Problem Solving/Algorithms/Find Digits.cpp
// Complete the findDigits function below.
Complete the findDigits function below.
Complete the findDigits function below .
int findDigits(int n) {
    int count = 0;
    int num = n;
    int current;
    do{
        current = num % 10;
        num /= 10;
        if (current != 0 && n % current == 0){
            count++;
        }
    }while(num > 0);
    return count;
}
int findDigits ( int n ) { int count = 0 ; int num = n ; int current ; do { current = num % 10 ; num /= 10 ; if ( current != 0 && n % current == 0 ) { count ++ ; } } while ( num > 0 ) ; return count ; }
Complete the findDigits function below.
Complete the findDigits function below .