int i, j; for (i = 8; i > 1; i /= 2) { for (j = i; j >= 1; j--) { printf("%d%d\n", i, j); } putchar('\n'); }