383
383
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
it shows thousands hundreds tens and ones
You cannot round a number with a place value larger than the place value you seek to round it to. i.e. You cannot round thousands to hundreds, hundreds to tens, tens to ones, etc.
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.
383
Your correct answer is hundreds place because you have your ones period like ones tens hundreds same with the thousands period ones tens hundreds.
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
1249
1332
it shows thousands hundreds tens and ones
The answer is 383
You cannot round a number with a place value larger than the place value you seek to round it to. i.e. You cannot round thousands to hundreds, hundreds to tens, tens to ones, etc.
The value of 9 would be hundreds in this question the 4=thousands 9=hundreds 6=tens 2=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.
Is that you look at the 1 and it is on the hundreds place and you look at the 6 and its on the tens place and the 5 is in the ones placed a to 0.98 is that the 9 is in the tens place and the 8 is in the ones place
254 - has 2 hundreds, 5 tens, and 4 ones