Let x be the unknown number and let y be the ten's digit,
then x = 10y + y - 3 = 11y - 3,
and x = 8 + 6(y + y - 3) = 8 + 6(2y - 3) = 8 + 12y - 18 = 12y -10,
therefore 12y - 10 = 11y - 3.
Subtracting 11y and adding 10 to each side, y = 7.
Since the ten's digit is 7, the unit's digit must be 4, and the number is 74.
2
what is the greets possible 9 digit number that uses each of the digits 1-3 times
26.
21
804
2
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