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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
When your number is less than fifty.
I am a four digit number. My tens digit is 2 more than my ones digit. My hundreds and thousands digit are both 1 less than my ones digit. What number can i be?
194
No solution.If it's greater than 3400, then its hundreds place must be '4'.Then (4) times (its tens place) = 2. There is no integer that can go in the tens place and make this true.
571
14 hundreds is less than 7,000 tens
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
what number has 9 hundreds, 2 fewer tens than hundreds, and 2 fewer ones than hundreds
When your number is less than fifty.
I am a four digit number. My tens digit is 2 more than my ones digit. My hundreds and thousands digit are both 1 less than my ones digit. What number can i be?
194
"The hundreds and the ones are the same digit and their sum is 10" did you say ?Well then, the hundreds and ones digit are both 5.And the tens is 2 less than that, or 3.So the number is . . . . . 535
952
849 has 8 hundreds, 4 fewer tens than hundreds, and 5 more ones than tens.
No solution.If it's greater than 3400, then its hundreds place must be '4'.Then (4) times (its tens place) = 2. There is no integer that can go in the tens place and make this true.
525 is one such number. You can add any number of thousands to it.