Expanded form: 2000 + 40 + 7
Standard form: 2047
2 * 10000 = 20000
4 * 10 = 40
7 * 1 = 7
=============
2000 + 40 + 7 = expanded form
2047 = standard form
six thousands, six hundreds, four tens, three ones
The standard form is 20,047
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
How do you drive 8076
You do it like this if you have 9,873 thousands hundreds tens ones 9,000 + 800 + 70 + 3 =9,873
7089
six thousands, six hundreds, four tens, three ones
3617
5,092
1521215 thousands = 1500020 tens = 20017 ones = 12sum: 15000 + 200 + 12 = 15212standard form: 15212
The standard form is 20,047
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
302596
200,053
How do you drive 8076
You do it like this if you have 9,873 thousands hundreds tens ones 9,000 + 800 + 70 + 3 =9,873
62,789