2
what is the greets possible 9 digit number that uses each of the digits 1-3 times
26.
21
804
27
Eighteen
what is the greets possible 9 digit number that uses each of the digits 1-3 times
26.
45
27
21
804
27
27
-8
To count the number of times a digit occurs in an integer, start by initializing an array of ten counts of digits, such as int digits[10];Then, in a loop while the number is non zero, increment the element in the digits array that corresponds to the units digit, and then divide the number by ten, such as digits[number%10]++ and number/=10;int digits[10];int i;int number = some number;for (i=0; i
-4