/* p9.c */ #include int main() { unsigned char t; unsigned char tc; while (scanf("%x", &t) == 1) { tc = ~t + 1; printf("%02x %02x \n", t, tc); } }