for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
if (100 * i + 10 * j + k + 100 * k + 10 * j + i == 1333) {
printf("a = %d b = %d c = %d\n", i, j, k);
}
}
}
}
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
for (int k = 0; k < 10; k++) {
if (100 * i + 10 * j + k + 100 * k + 10 * j + i == 1333) {
printf("a = %d b = %d c = %d\n", i, j, k);
}
}
}
}