230.
Chat with our AI personalities
What number has 9 tens and 4 fewer ones than tens
99
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); /**/ /**/ /**/ } /**/ /**/ } /**/ } }
The prime number between 20 and 30 whose ones digit is 7 greater than its tens digit is 23. The tens digit is 2, and the ones digit is 3, which is 7 greater than 2. Additionally, 23 is a prime number because it is only divisible by 1 and itself, with no other factors.
The first (left most) digit is the number of tens and the other is the number of ones. So 57 = 5 tens plus 7 ones = 50 + 7 = 57