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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
16 maybe.=)
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?
3
It is 16*10 + 8*1 + 2*100 = 160 + 8 + 200 = 368.
16 tens= 16 * 10= 160 5 ones= 5 * 1= 5 160 + 5= 165
42*10 = 420 16*1 = 16 420+16 = 436.
7 hundreds, 16 tens 4 ones is 7 x 100 + 16 x 10 + 4 x 1 = 700 + 160 + 4 = 864.
The number is 16*10 plus 9*1 = 169
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
16 maybe.=)
The number that has 3 hundreds, 20 tens, and 16 ones can be written as 320 + 16 = 336. In this number, there are 3 hundreds (300), 20 tens (20 x 10 = 200), and 16 ones. When you add these together, you get the final number, 336.
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?
3
1 in the tens place = 10 1 in ones place = 1
It is 16*10 + 8*1 + 2*100 = 160 + 8 + 200 = 368.
4 tens + 9 ones 3 tens + 19 ones 2 tens + 29 ones 1 ten + 39 ones 49 ones.