There is no four digit number where the ones is twice the tens, the hundreds is five less than the ones, and the thousands is the sum of the tens and hundreds. int ones, tens, hundreds, thousands; for (thousands=1; thousands<10; thousands++) { /**/ for (hundreds=0; hundreds<10; hundreds++) { /**/ /**/ for (tens=0; tens<10; tens++) { /**/ /**/ /**/ for (ones=0; ones<10; ones++) { /**/ /**/ /**/ /**/ if (ones != 2 * tens) break; /**/ /**/ /**/ /**/ if (hundreds != ones - 5) break; /**/ /**/ /**/ /**/ if (thousands != tens + hundreds) break; /**/ /**/ /**/ /**/ printf ("dd\n", thousands, hundreds, tens, ones); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
3064
Thousands in tens.
3000 has 3 thousands, 30 hundreds and 300 tens. 40000 has 40 thousands, 400 hundreds and 4000 tens. 500000 has 500 thousands, 5000 hundreds and 50000 tens. 6000000 has 6000 thousands, 60000 hundreds and 600000 tens.
3 because right to left is ones, tens, hundreds, thousands, etc.
9 of them.
9 one thousands = 90 (tens, tenths,thousands, or hundredths)
There is no four digit number where the ones is twice the tens, the hundreds is five less than the ones, and the thousands is the sum of the tens and hundreds. int ones, tens, hundreds, thousands; for (thousands=1; thousands<10; thousands++) { /**/ for (hundreds=0; hundreds<10; hundreds++) { /**/ /**/ for (tens=0; tens<10; tens++) { /**/ /**/ /**/ for (ones=0; ones<10; ones++) { /**/ /**/ /**/ /**/ if (ones != 2 * tens) break; /**/ /**/ /**/ /**/ if (hundreds != ones - 5) break; /**/ /**/ /**/ /**/ if (thousands != tens + hundreds) break; /**/ /**/ /**/ /**/ printf ("dd\n", thousands, hundreds, tens, ones); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
The number is 8,413
5,092
3064
8
Tens of thousands.
Thousands in tens.
3000 has 3 thousands, 30 hundreds and 300 tens. 40000 has 40 thousands, 400 hundreds and 4000 tens. 500000 has 500 thousands, 5000 hundreds and 50000 tens. 6000000 has 6000 thousands, 60000 hundreds and 600000 tens.
It is 5305.
3 because right to left is ones, tens, hundreds, thousands, etc.