Rearranging blocks of digits
问题 I encountered a hard question I don't know the answer to: "Rearrange the digits from an integer in blocks of two with a recursive function" here's an example: Input: 123456 unsigned long pairinvPrint(unsigned long number) { printf("%d", number % 100); if ((number / 100) <= 99) { printf("%d", number / 100); } else { pairinv(number / 100); } } Output: 563412 More I/O Examples: 42 -> 42; 1234 -> 3412 However, the set circumstances to do this are hard (no loops, arrays, pointers, global- or