0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
Chat with our AI personalities
10 digits
1023456789
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
10 digits are numbers in the billions.
The answer is 10P3 = 10!/(10-3)! = 10*9*8 = 720