Where input is binary - output the decimal reversed equivalent and vice versa for decimal input:
Sample Input:
00000001
00000010
255
00011000
Sample Output
1
2
1000101000
42
other Sample Input
78
35
01011001
231
other Sample Output
01010111
00110101
98
10000100
10000000which could be interpreted as binary (32768 decimal) or decimal (1 million) ? – Paul R Jun 6 '11 at 17:53