###### Asked in Brain Teasers and Logic Puzzles

Brain Teasers and Logic Puzzles

# What two digit number is three times the sum of its digits?

## Answer

###### Wiki User

###### January 11, 2009 8:09PM

**27**

3(**2**+**7**)=**27**

## Related Questions

###### Asked in Math and Arithmetic, Algebra, Computer Science

### How do you make a program that counts how many times each digit occured in the integer?

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; i++) digits[i]=0;
do (digits[number%10]++; number/=10) while (number != 0);

###### Asked in Math and Arithmetic, Statistics, Algebra

### How many 4 digit combinations can be made from these 3 numbers 2-6-5?

Assuming you're allowed to repeat numbers, the answer is 81. For
each digit, you have three choices: 2, 5, and 6. So there are three
one-digit numbers you can make, and each one digit number can be
combined with any of three other digits to make a two-digit number,
giving 9 (3 times 3) possibilities. Now you can take any of the
nine two-digit numbers as the tens and ones places in the
four-digit number and any other two-digit number as the thousands
and hundreds places, which gives 81 (9 times 9) possibilities.
If you can't repeat numbers, the answer is zero because you
don't have enough numbers to fill all the digits.

Load More