What I'm doing wrong . . .
I need to count quantity of different digits in number
for example 321123 : and output i want like that
There r 3 different digits in the number 321123
Code:while(n) { dif=n%10; n/=10; if (dif=n%10) n/=10; else count++; } printf("\nThere r ",count); printf(" different digits in the number",n);