965
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
15 638 can be made with 1 ten, 5 ones, 6 hundreds, 3 tens, and 8 ones; 1 ten, 8 ones, 6 hundreds, 3 tens, and 5 ones; or 6 ones, 5 hundreds, 3 tens, 8 ones, and 1 ten.
619 has.
285
6,130 has.
254 - has 2 hundreds, 5 tens, and 4 ones
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
15 638 can be made with 1 ten, 5 ones, 6 hundreds, 3 tens, and 8 ones; 1 ten, 8 ones, 6 hundreds, 3 tens, and 5 ones; or 6 ones, 5 hundreds, 3 tens, 8 ones, and 1 ten.
849 has 8 hundreds, 4 fewer tens than hundreds, and 5 more ones than tens.
530?
IS 5000 4000
The number is 729.
105
696.3?
521
This number is equal to 654.7.
619 has.