• + 0 comments

    int a = n; int d = 0; while(a>0){ int rem = a%10; if(rem != 0 && n % rem ==0){ d++; } a = a/10; } return d;