[Solved] Count numbers where three first digits equal last three
To count all the values where the first three digits equals the last three digits. (As you solution suggests) You can calculate the range for i4, i5 and the value i6 which makes this much faster. int count = 0; for (int i1 = 0; i1 <= 9; i1++) { for (int i2 = 0; … Read more